cleanly return from jog menu

This commit is contained in:
Ronald Schaten 2022-02-03 00:05:11 +01:00
parent eb3063181a
commit 7e00d8dee5

View File

@ -127,6 +127,16 @@ void ButtonHandler_jog(const ButtonParam& param) {
Serial.print(param.button); Serial.print(param.button);
Serial.print(") - "); Serial.print(") - ");
switch (param.state) { 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: case ButtonState_Up:
Serial.println("Up"); Serial.println("Up");
stepper.stop(); stepper.stop();