Skip to content

Commit

Permalink
🔧 Condensing park commands to one Gcode location
Browse files Browse the repository at this point in the history
  • Loading branch information
bmkahl committed Feb 27, 2024
1 parent d8df325 commit ad5182b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void BaseNumericAdjustmentScreen::onEntry() {
bool BaseNumericAdjustmentScreen::onTouchEnd(uint8_t tag) {
switch (tag) {
case 1: GOTO_PREVIOUS(); return true;
case 100: SpinnerDialogBox::enqueueAndWait(F("G28O\nG0 X100 Y283 Z200 F3000"));
case 100: SpinnerDialogBox::enqueueAndWait(F(PARKING_COMMAND_GCODE)); break;
case 240 ... 245: mydata.increment = tag; break;
default: return current_screen.onTouchHeld(tag);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ bool ChangeFilamentScreen::onTouchEnd(uint8_t tag) {
injectCommands(F("M117 Print Resumed")); resumePrint(); GOTO_SCREEN(StatusScreen); break;
}
else{
injectCommands(F("G28O\nG0 X100 Y283 Z200 F3000"));
injectCommands(F(PARKING_COMMAND_GCODE)); break;
}
}
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ bool CustomUserMenus::onTouchEnd(uint8_t tag) {
#endif

case 1: GOTO_PREVIOUS(); break;
case 20: injectCommands(F("G28O\nG0 X100 Y283 Z200 F3000"));
case 20: injectCommands(F(PARKING_COMMAND_GCODE)); break;
default: return false;
}
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ bool BaseMoveAxisScreen::onTouchHeld(const uint8_t tag) {
#endif
#endif
case 23: SpinnerDialogBox::enqueueAndWait(F("G28")); break;
case 25: SpinnerDialogBox::enqueueAndWait(F("G28O\nG0 X100 Y283 Z200 F3000"));
case 25: injectCommands(F(PARKING_COMMAND_GCODE)); break;
default:
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ bool TemperatureScreen::onTouchHeld(uint8_t tag) {
case 32: injectCommands_P(PSTR(PREHEAT_2_COMMAND)); GOTO_SCREEN(StatusScreen); break;
case 33: injectCommands_P(PSTR(PREHEAT_3_COMMAND)); GOTO_SCREEN(StatusScreen); break;
case 34: injectCommands_P(PSTR(PREHEAT_4_COMMAND)); GOTO_SCREEN(StatusScreen); break;
case 35: injectCommands(F("G28O\nG0 X100 Y283 Z200 F3000"));
case 35: injectCommands(F(PARKING_COMMAND_GCODE)); break;
default:
return false;
}
Expand Down

0 comments on commit ad5182b

Please sign in to comment.