Skip to content

Commit e61e54a

Browse files
marcio-aothinkyhead
authored andcommitted
Fix TURBO_BACK_MENU_ITEM compile error (MarlinFirmware#15019)
1 parent 0a280f0 commit e61e54a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Marlin/src/lcd/ultralcd.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,16 @@ class MarlinUI {
449449
static void save_previous_screen();
450450
static void goto_previous_screen(
451451
#if ENABLED(TURBO_BACK_MENU_ITEM)
452-
const bool is_back=false
452+
const bool is_back
453453
#endif
454454
);
455455

456+
#if ENABLED(TURBO_BACK_MENU_ITEM)
457+
// Various menu items require a "void (*)()" to point to
458+
// this function so a default argument *won't* work
459+
static inline void goto_previous_screen() { goto_previous_screen(false); }
460+
#endif
461+
456462
static void return_to_status();
457463
static inline bool on_status_screen() { return currentScreen == status_screen; }
458464
static inline void run_current_screen() { (*currentScreen)(); }

0 commit comments

Comments
 (0)