Skip to content

Commit

Permalink
Make socket transport independent on the framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Caian committed Dec 20, 2023
1 parent 5059ebc commit 7cbd961
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extra_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@
main_path = os.path.realpath(".")
global_env = DefaultEnvironment()
board = env['BOARD']
framework = env['PIOFRAMEWORK'][0]
platform = env.get('PIOPLATFORM', None)
extra_packages_path = "{}/extra_packages".format(env['PROJECT_DIR'])

if platform == 'linux_arm':
# Transports built for linux do not depend on the framework
framework = 'linux'
selected_board_meta = 'linux.meta'
else:
framework = env['PIOFRAMEWORK'][0]
selected_board_meta = boards_metas[board] if board in boards_metas else "colcon.meta"

# Retrieve the required transport. Default iron
Expand Down

0 comments on commit 7cbd961

Please sign in to comment.