Skip to content

Commit

Permalink
no disengaging motor in stop request
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Sep 8, 2023
1 parent 0380d01 commit a968d4f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,9 @@ class MotionController {
queue.reset();
// if we're gripping something we need to flag this so we don't drop it
if (!hardware.get_stay_enabled()) {
disable_motor();
}
if (hardware.is_timer_interrupt_running()) {
hardware.request_cancel();
if (hardware.is_timer_interrupt_running()) {
hardware.request_cancel();
}
}
}

Expand Down

0 comments on commit a968d4f

Please sign in to comment.