Browse Source

Fix TURBO_BACK_MENU_ITEM compile error (#15019)

Marcio Teixeira 6 years ago
parent
commit
e61e54acfd
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      Marlin/src/lcd/ultralcd.h

+ 7
- 1
Marlin/src/lcd/ultralcd.h View File

@@ -449,10 +449,16 @@ public:
449 449
     static void save_previous_screen();
450 450
     static void goto_previous_screen(
451 451
       #if ENABLED(TURBO_BACK_MENU_ITEM)
452
-        const bool is_back=false
452
+        const bool is_back
453 453
       #endif
454 454
     );
455 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
+
456 462
     static void return_to_status();
457 463
     static inline bool on_status_screen() { return currentScreen == status_screen; }
458 464
     static inline void run_current_screen() { (*currentScreen)(); }

Loading…
Cancel
Save