Fix TURBO_BACK_MENU_ITEM compile error (#15019)
This commit is contained in:
parent
0a280f00c2
commit
e61e54acfd
@ -449,10 +449,16 @@ public:
|
|||||||
static void save_previous_screen();
|
static void save_previous_screen();
|
||||||
static void goto_previous_screen(
|
static void goto_previous_screen(
|
||||||
#if ENABLED(TURBO_BACK_MENU_ITEM)
|
#if ENABLED(TURBO_BACK_MENU_ITEM)
|
||||||
const bool is_back=false
|
const bool is_back
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#if ENABLED(TURBO_BACK_MENU_ITEM)
|
||||||
|
// Various menu items require a "void (*)()" to point to
|
||||||
|
// this function so a default argument *won't* work
|
||||||
|
static inline void goto_previous_screen() { goto_previous_screen(false); }
|
||||||
|
#endif
|
||||||
|
|
||||||
static void return_to_status();
|
static void return_to_status();
|
||||||
static inline bool on_status_screen() { return currentScreen == status_screen; }
|
static inline bool on_status_screen() { return currentScreen == status_screen; }
|
||||||
static inline void run_current_screen() { (*currentScreen)(); }
|
static inline void run_current_screen() { (*currentScreen)(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user