Browse Source

Only show custom bootscreen once

Scott Lahteine 7 years ago
parent
commit
a516856df9
1 changed files with 9 additions and 7 deletions
  1. 9
    7
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 9
- 7
Marlin/src/lcd/ultralcd_impl_DOGM.h View File

278
 
278
 
279
 #if ENABLED(SHOW_BOOTSCREEN)
279
 #if ENABLED(SHOW_BOOTSCREEN)
280
 
280
 
281
+  bool show_bootscreen = true;
282
+
281
   #if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
283
   #if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
282
 
284
 
283
     void lcd_custom_bootscreen() {
285
     void lcd_custom_bootscreen() {
294
 
296
 
295
   void lcd_bootscreen() {
297
   void lcd_bootscreen() {
296
 
298
 
297
-    static bool show_bootscreen = true;
298
-
299
     if (show_bootscreen) {
299
     if (show_bootscreen) {
300
       show_bootscreen = false;
300
       show_bootscreen = false;
301
 
301
 
353
   #endif
353
   #endif
354
 
354
 
355
   #if ENABLED(SHOW_BOOTSCREEN)
355
   #if ENABLED(SHOW_BOOTSCREEN)
356
-    #if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
357
-      lcd_custom_bootscreen();
358
-    #else
359
-      lcd_bootscreen();
360
-    #endif
356
+    if (show_bootscreen) {
357
+      #if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
358
+        lcd_custom_bootscreen();
359
+      #else
360
+        lcd_bootscreen();
361
+      #endif
362
+    }
361
   #endif
363
   #endif
362
 }
364
 }
363
 
365
 

Loading…
Cancel
Save