Skip to content

Commit 7003e62

Browse files
authored
fix(api): idle gripper should idle (#13558)
* wrong logic
1 parent c19927d commit 7003e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/opentrons/hardware_control/instruments/ot3/gripper_handler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ def check_ready_for_jaw_move(self) -> None:
139139
raise GripError("Gripper jaw must be homed before moving")
140140

141141
def is_ready_for_idle(self) -> bool:
142-
"""Raise an exception if it is not currently valid to idle the jaw."""
142+
"""Gripper can idle when the jaw is not currently gripping."""
143143
gripper = self.get_gripper()
144144
if gripper.state == GripperJawState.UNHOMED:
145145
self._log.warning(
146146
"Gripper jaw is not homed and cannot move to idle position."
147147
)
148-
return gripper.state == GripperJawState.GRIPPING
148+
return gripper.state != GripperJawState.GRIPPING
149149

150150
def is_ready_for_jaw_home(self) -> bool:
151151
"""Raise an exception if it is not currently valid to home the jaw."""

0 commit comments

Comments
 (0)