From 1461ee4d3635a94ceac01da39449e960215a3fe5 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Sun, 25 Aug 2019 02:25:07 -0700 Subject: [PATCH] Make LCD_CONTRAST_MAX >= _LCD_CONTRAST_INIT (#15046) --- Marlin/src/inc/Conditionals_post.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/src/inc/Conditionals_post.h b/Marlin/src/inc/Conditionals_post.h index 6067b35688..f20d885690 100644 --- a/Marlin/src/inc/Conditionals_post.h +++ b/Marlin/src/inc/Conditionals_post.h @@ -292,8 +292,10 @@ #ifndef LCD_CONTRAST_MAX #ifdef _LCD_CONTRAST_MAX #define LCD_CONTRAST_MAX _LCD_CONTRAST_MAX + #elif _LCD_CONTRAST_INIT > 63 + #define LCD_CONTRAST_MAX _LCD_CONTRAST_INIT #else - #define LCD_CONTRAST_MAX 63 + #define LCD_CONTRAST_MAX 63 // ST7567 6-bits contrast #endif #endif #ifndef DEFAULT_LCD_CONTRAST