Skip to content

Commit

Permalink
Move Cancel Object menu, fix canceled item index (MarlinFirmware#18930)
Browse files Browse the repository at this point in the history
  • Loading branch information
swissnorp authored and walterp1982 committed Aug 15, 2022
1 parent 99688a7 commit 0cc1e5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 5 additions & 1 deletion Marlin/src/lcd/menu/menu_advanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,11 @@ void menu_advanced_settings() {
SUBMENU(MSG_BACKLASH, menu_backlash);
#endif

#if HAS_MOTOR_CURRENT_DAC
#if ENABLED(CANCEL_OBJECTS)
SUBMENU(MSG_CANCEL_OBJECT, []{ editable.int8 = -1; ui.goto_screen(menu_cancelobject); });
#endif

#if ENABLED(DAC_STEPPER_CURRENT)
SUBMENU(MSG_DRIVE_STRENGTH, menu_dac);
#endif
#if HAS_MOTOR_CURRENT_PWM
Expand Down
7 changes: 2 additions & 5 deletions Marlin/src/lcd/menu/menu_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,9 @@ void menu_main() {
});
#endif

#if ENABLED(GCODE_REPEAT_MARKERS)
if (repeat.is_active())
ACTION_ITEM(MSG_END_LOOPS, repeat.cancel);
#endif
#if !HAS_ENCODER_WHEEL && ENABLED(SDSUPPORT)

SUBMENU(MSG_TUNE, menu_tune);
// *** IF THIS SECTION IS CHANGED, REPRODUCE BELOW ***

#if ENABLED(CANCEL_OBJECTS) && DISABLED(SLIM_LCD_MENUS)
SUBMENU(MSG_CANCEL_OBJECT, []{ editable.int8 = -1; ui.goto_screen(menu_cancelobject); });
Expand Down

0 comments on commit 0cc1e5a

Please sign in to comment.