Skip to content

Commit

Permalink
only do the toggle on > 2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Sep 19, 2024
1 parent 22998dd commit 7e22b9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,16 @@ def mix(
),
):
self.aspirate(volume, location, rate)
auto_presence = self.liquid_presence_detection
self.liquid_presence_detection = False
if self.api_version >= APIVersion(2, 20):
auto_presence = self.liquid_presence_detection
self.liquid_presence_detection = False
while repetitions - 1 > 0:
self.dispense(volume, rate=rate, **dispense_kwargs)
self.aspirate(volume, rate=rate)
repetitions -= 1
self.dispense(volume, rate=rate)
self.liquid_presence_detection = auto_presence
if self.api_version >= APIVersion(2, 20):
self.liquid_presence_detection = auto_presence
return self

@requires_version(2, 0)
Expand Down

0 comments on commit 7e22b9d

Please sign in to comment.