Skip to content

Commit

Permalink
don't listen for emulators on robot.
Browse files Browse the repository at this point in the history
  • Loading branch information
amit lissack committed Nov 9, 2021
1 parent d79d8b3 commit 3198269
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api/src/opentrons/hardware_control/module_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ async def build(
) -> AttachedModulesControl:
mc_instance = cls(api_instance, board_revision)
if not api_instance.is_simulator:
# Do an initial scan of modules.
await mc_instance.register_modules(mc_instance.scan())
api_instance.loop.create_task(
listen_module_connection(mc_instance.register_modules)
)
if not IS_ROBOT:
# Start task that registers emulated modules.
api_instance.loop.create_task(
listen_module_connection(mc_instance.register_modules)
)

return mc_instance

Expand Down

0 comments on commit 3198269

Please sign in to comment.