Browse Source

Make LCD_TIMEOUT_TO_STATUS configurable

As suggested in
https://github.com/MarlinFirmware/Marlin/issues/5570#issuecomment-283059
065
Scott Lahteine 7 years ago
parent
commit
c759c26cca
3 changed files with 8 additions and 1 deletions
  1. 5
    0
      Marlin/Conditionals_post.h
  2. 3
    0
      Marlin/Configuration_adv.h
  3. 0
    1
      Marlin/ultralcd.h

+ 5
- 0
Marlin/Conditionals_post.h View File

726
     #define HAS_FOLDER_SORTING (FOLDER_SORTING || ENABLED(SDSORT_GCODE))
726
     #define HAS_FOLDER_SORTING (FOLDER_SORTING || ENABLED(SDSORT_GCODE))
727
   #endif
727
   #endif
728
 
728
 
729
+  // LCD timeout to status screen default is 15s
730
+  #ifndef LCD_TIMEOUT_TO_STATUS
731
+    #define LCD_TIMEOUT_TO_STATUS 15000
732
+  #endif
733
+
729
 #endif // CONDITIONALS_POST_H
734
 #endif // CONDITIONALS_POST_H

+ 3
- 0
Marlin/Configuration_adv.h View File

425
 // On the Info Screen, display XY with one decimal place when possible
425
 // On the Info Screen, display XY with one decimal place when possible
426
 //#define LCD_DECIMAL_SMALL_XY
426
 //#define LCD_DECIMAL_SMALL_XY
427
 
427
 
428
+// The timeout (in ms) to return to the status screen from sub-menus
429
+//#define LCD_TIMEOUT_TO_STATUS 15000
430
+
428
 #if ENABLED(SDSUPPORT)
431
 #if ENABLED(SDSUPPORT)
429
 
432
 
430
   // Some RAMPS and other boards don't detect when an SD card is inserted. You can work
433
   // Some RAMPS and other boards don't detect when an SD card is inserted. You can work

+ 0
- 1
Marlin/ultralcd.h View File

65
   #define LCD_ALERTMESSAGEPGM(x) lcd_setalertstatuspgm(PSTR(x))
65
   #define LCD_ALERTMESSAGEPGM(x) lcd_setalertstatuspgm(PSTR(x))
66
 
66
 
67
   #define LCD_UPDATE_INTERVAL 100
67
   #define LCD_UPDATE_INTERVAL 100
68
-  #define LCD_TIMEOUT_TO_STATUS 15000
69
 
68
 
70
   #if ENABLED(ULTIPANEL)
69
   #if ENABLED(ULTIPANEL)
71
 
70
 

Loading…
Cancel
Save