Skip to content

Commit

Permalink
feat(api): register module instances on os events
Browse files Browse the repository at this point in the history
Previously, the hardware controller only became aware of underlying connected hardware modules when
it was told to look via an http endpoint (only effectively used by the run app). In order to remove
this unnecessary reliance, the hardware controller now watches the filesystem for changes using
aionotify (a thin python wrapper of linux util). Changes to the physically connected modules should
now be instantly reflected in the hardware controllers attached modules regardless of whether the
hardware controller is observed by a third party or not. No more Schrödinger's modules

re #3580
  • Loading branch information
b-cooper committed Nov 12, 2019
1 parent 339421e commit b3b55b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/src/opentrons/server/endpoints/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ async def get_attached_modules(request):
}
"""
hw = hw_from_req(request)
print(f'\n\nhw: {hw}\n\n')
if ff.use_protocol_api_v2():
hw_mods = hw.attached_modules
module_data = [
Expand Down

0 comments on commit b3b55b3

Please sign in to comment.