Skip to content

Commit

Permalink
Bug Fix: Steppers no long hold when exiting the Jog Menu and Extrude …
Browse files Browse the repository at this point in the history
…Menu to reduce heating
  • Loading branch information
jetty840 committed Jan 4, 2012
1 parent e9ea3e2 commit 47ebca6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions firmware/src/shared/Menu.cc
Expand Up @@ -349,6 +349,10 @@ void JogMode::notifyButtonPressed(ButtonArray::ButtonName button) {
jog(button);
break;
case ButtonArray::CANCEL:
steppers::abort();
steppers::enableAxis(0, false);
steppers::enableAxis(1, false);
steppers::enableAxis(2, false);
interface::popScreen();
break;
}
Expand Down Expand Up @@ -527,6 +531,8 @@ void ExtruderMode::notifyButtonPressed(ButtonArray::ButtonName button) {
extrude((seconds_t)(zReverse * lastDirection * extrudeSeconds), false);
break;
case ButtonArray::CANCEL:
steppers::abort();
steppers::enableAxis(3, false);
interface::popScreen();
break;
}
Expand Down

0 comments on commit 47ebca6

Please sign in to comment.