From c759c26cca15b780c5e3cfba468bc69d025b38a9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 28 Feb 2017 19:02:50 -0600 Subject: [PATCH] Make LCD_TIMEOUT_TO_STATUS configurable As suggested in https://github.com/MarlinFirmware/Marlin/issues/5570#issuecomment-283059 065 --- Marlin/Conditionals_post.h | 5 +++++ Marlin/Configuration_adv.h | 3 +++ Marlin/ultralcd.h | 1 - 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Marlin/Conditionals_post.h b/Marlin/Conditionals_post.h index dced199ba..797be835b 100644 --- a/Marlin/Conditionals_post.h +++ b/Marlin/Conditionals_post.h @@ -726,4 +726,9 @@ #define HAS_FOLDER_SORTING (FOLDER_SORTING || ENABLED(SDSORT_GCODE)) #endif + // LCD timeout to status screen default is 15s + #ifndef LCD_TIMEOUT_TO_STATUS + #define LCD_TIMEOUT_TO_STATUS 15000 + #endif + #endif // CONDITIONALS_POST_H diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 42b6d0634..8c08c28f7 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -425,6 +425,9 @@ // On the Info Screen, display XY with one decimal place when possible //#define LCD_DECIMAL_SMALL_XY +// The timeout (in ms) to return to the status screen from sub-menus +//#define LCD_TIMEOUT_TO_STATUS 15000 + #if ENABLED(SDSUPPORT) // Some RAMPS and other boards don't detect when an SD card is inserted. You can work diff --git a/Marlin/ultralcd.h b/Marlin/ultralcd.h index f5b54f96d..8dd2825a3 100644 --- a/Marlin/ultralcd.h +++ b/Marlin/ultralcd.h @@ -65,7 +65,6 @@ #define LCD_ALERTMESSAGEPGM(x) lcd_setalertstatuspgm(PSTR(x)) #define LCD_UPDATE_INTERVAL 100 - #define LCD_TIMEOUT_TO_STATUS 15000 #if ENABLED(ULTIPANEL)