From dfcd43748649295cf1cc6da5ba68eb5a1cf2aa42 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 14 Aug 2019 00:00:46 -0500 Subject: [PATCH] Base HAS_LCD_CONTRAST on display type --- Marlin/src/inc/Conditionals_LCD.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Marlin/src/inc/Conditionals_LCD.h b/Marlin/src/inc/Conditionals_LCD.h index 411e2fe8344f..0d719e844bd1 100644 --- a/Marlin/src/inc/Conditionals_LCD.h +++ b/Marlin/src/inc/Conditionals_LCD.h @@ -384,7 +384,14 @@ /** * Default LCD contrast for Graphical LCD displays */ -#define HAS_LCD_CONTRAST (HAS_GRAPHICAL_LCD && defined(DEFAULT_LCD_CONTRAST)) +#define HAS_LCD_CONTRAST ( \ + ENABLED(MAKRPANEL) \ + || ENABLED(CARTESIO_UI) \ + || ENABLED(VIKI2) \ + || ENABLED(AZSMZ_12864) \ + || ENABLED(miniVIKI) \ + || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \ +) #if HAS_LCD_CONTRAST #ifndef LCD_CONTRAST_MIN #define LCD_CONTRAST_MIN 0