Skip to content

Commit

Permalink
rm unnecessary sensor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj committed Jan 6, 2025
1 parent 6bf9016 commit e63e9c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hardware/opentrons_hardware/sensors/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ async def bind_sync(
) -> AsyncIterator[None]:
"""While acquired, bind the specified sensor to control sync."""
flags = [SensorOutputBinding.sync]
# if do_log:
flags.append(SensorOutputBinding.report)
if do_log:
flags.append(SensorOutputBinding.report)
error = await can_messenger.ensure_send(
node_id=target_sensor.node_id,
message=BindSensorOutputRequest(
Expand Down
4 changes: 1 addition & 3 deletions hardware/opentrons_hardware/sensors/sensor_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ async def bind_output(
sensor_info = sensor.sensor

if binding is not None:
# binding += SensorOutputBinding.report
# binding_field = SensorOutputBindingField.from_flags(binding)
binding_field = SensorOutputBindingField.from_flags([SensorOutputBinding.sync, SensorOutputBinding.report])
binding_field = SensorOutputBindingField.from_flags(binding)
else:
binding_field = SensorOutputBindingField(SensorOutputBinding.none)

Expand Down

0 comments on commit e63e9c4

Please sign in to comment.