Skip to content

Commit

Permalink
check if speed exists
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj committed Jul 21, 2023
1 parent ba291d5 commit 0a0ed2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ async def move_tip_motor_relative_ot3(
current_gear_pos_dict = {Axis.Q: current_gear_pos_float}
target_pos_dict = {Axis.Q: current_gear_pos_float + distance}

if distance < 0:
if speed is not None and distance < 0:
speed *= -1

tip_motor_move = api._build_moves(current_gear_pos_dict, target_pos_dict, speed)
Expand Down

0 comments on commit 0a0ed2b

Please sign in to comment.