Browse Source

Adds a customizable screen timeout for the default boot screen

João Brázio 8 years ago
parent
commit
f5234b0695
2 changed files with 6 additions and 2 deletions
  1. 5
    1
      Marlin/Conditionals.h
  2. 1
    1
      Marlin/Marlin_main.cpp

+ 5
- 1
Marlin/Conditionals.h View File

@@ -55,7 +55,7 @@
55 55
     #define LCD_CONTRAST_MIN 60
56 56
     #define LCD_CONTRAST_MAX 140
57 57
   #endif
58
-  
58
+
59 59
   #if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)
60 60
     #define DOGLCD
61 61
     #define ULTIPANEL
@@ -269,6 +269,10 @@
269 269
     #endif
270 270
   #endif
271 271
 
272
+  #ifndef BOOTSCREEN_TIMEOUT
273
+    #define BOOTSCREEN_TIMEOUT 2500
274
+  #endif
275
+
272 276
 #else // CONFIGURATION_LCD
273 277
 
274 278
   #define CONDITIONALS_H

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -946,7 +946,7 @@ void setup() {
946 946
   lcd_init();
947 947
   #if ENABLED(SHOW_BOOTSCREEN)
948 948
     #if ENABLED(DOGLCD)
949
-      delay(1000);
949
+      delay(BOOTSCREEN_TIMEOUT);
950 950
     #elif ENABLED(ULTRA_LCD)
951 951
       bootscreen();
952 952
       lcd_init();

Loading…
Cancel
Save