瀏覽代碼

Merge pull request #8182 from thinkyhead/bf1_fix_bootscreen_repeat

[1.1.x] Only show custom bootscreen once
Scott Lahteine 7 年之前
父節點
當前提交
b48a77c88a
No account linked to committer's email address
共有 1 個文件被更改,包括 9 次插入7 次删除
  1. 9
    7
      Marlin/ultralcd_impl_DOGM.h

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

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

Loading…
取消
儲存