We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a280f0 commit e61e54aCopy full SHA for e61e54a
Marlin/src/lcd/ultralcd.h
@@ -449,10 +449,16 @@ class MarlinUI {
449
static void save_previous_screen();
450
static void goto_previous_screen(
451
#if ENABLED(TURBO_BACK_MENU_ITEM)
452
- const bool is_back=false
+ const bool is_back
453
#endif
454
);
455
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
+
462
static void return_to_status();
463
static inline bool on_status_screen() { return currentScreen == status_screen; }
464
static inline void run_current_screen() { (*currentScreen)(); }
0 commit comments