Skip to content

Commit

Permalink
Fix TURBO_BACK_MENU_ITEM compile error (MarlinFirmware#15019)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcio-ao authored and thinkyhead committed Aug 24, 2019
1 parent 0a280f0 commit e61e54a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Marlin/src/lcd/ultralcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,16 @@ class MarlinUI {
static void save_previous_screen();
static void goto_previous_screen(
#if ENABLED(TURBO_BACK_MENU_ITEM)
const bool is_back=false
const bool is_back
#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 inline bool on_status_screen() { return currentScreen == status_screen; }
static inline void run_current_screen() { (*currentScreen)(); }
Expand Down

0 comments on commit e61e54a

Please sign in to comment.