Enable contrast via LCD_CONTRAST_INIT (#15006)

This commit is contained in:
Tanguy Pruvot
2019-08-22 01:56:39 +02:00
committed by Scott Lahteine
parent 012f577bb0
commit e604f76703
7 changed files with 40 additions and 47 deletions

View File

@ -828,8 +828,10 @@ void MarlinSettings::postprocess() {
const int16_t lcd_contrast =
#if HAS_LCD_CONTRAST
ui.contrast
#elif defined(DEFAULT_LCD_CONTRAST)
DEFAULT_LCD_CONTRAST
#else
32
127
#endif
;
EEPROM_WRITE(lcd_contrast);