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

+ 1
- 1
Marlin/Marlin_main.cpp View File

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

Loading…
Cancel
Save