瀏覽代碼

Only show custom bootscreen once

Scott Lahteine 7 年之前
父節點
當前提交
a516856df9
共有 1 個檔案被更改,包括 9 行新增7 行删除
  1. 9
    7
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 9
- 7
Marlin/src/lcd/ultralcd_impl_DOGM.h 查看文件

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…
取消
儲存