Skip to content

Commit

Permalink
fix(api): default to both sensors on lld
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Sep 12, 2024
1 parent 9c83c6d commit 73bd7fd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion api/src/opentrons/hardware_control/ot3api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2683,6 +2683,15 @@ async def liquid_probe(
self._pipette_handler.ready_for_tip_action(
instrument, HardwareAction.LIQUID_PROBE, checked_mount
)
# default to using all available sensors
if probe:
checked_probe = probe
else:
checked_probe = (
InstrumentProbeType.BOTH
if instrument.channels > 1
else InstrumentProbeType.PRIMARY
)

if not probe_settings:
probe_settings = deepcopy(self.config.liquid_sense)
Expand Down Expand Up @@ -2756,7 +2765,7 @@ async def liquid_probe(
height = await self._liquid_probe_pass(
checked_mount,
probe_settings,
probe if probe else InstrumentProbeType.PRIMARY,
checked_probe,
p_pass_travel + p_impulse_mm,
)
# if we made it here without an error we found the liquid
Expand Down

0 comments on commit 73bd7fd

Please sign in to comment.