cleanly return from jog menu
This commit is contained in:
parent
eb3063181a
commit
7e00d8dee5
@ -127,6 +127,16 @@ void ButtonHandler_jog(const ButtonParam& param) {
|
||||
Serial.print(param.button);
|
||||
Serial.print(") - ");
|
||||
switch (param.state) {
|
||||
case ButtonState_Click:
|
||||
Serial.println("Click");
|
||||
switch (param.button) {
|
||||
case KEY_SELECT:
|
||||
state = STATE_MENU;
|
||||
mainMenu.dirty = true;
|
||||
break;
|
||||
}
|
||||
nav.doOutput();
|
||||
break;
|
||||
case ButtonState_Up:
|
||||
Serial.println("Up");
|
||||
stepper.stop();
|
||||
|
Loading…
Reference in New Issue
Block a user