1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

Preserve brightness in EEPROM validate (#19485)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
ellensp 2020-09-24 08:44:15 +12:00 committed by GitHub
parent 93421f3a00
commit e3d4e328f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1804,10 +1804,11 @@ void MarlinSettings::postprocess() {
//
{
_FIELD_TEST(lcd_contrast);
int16_t lcd_contrast;
EEPROM_READ(lcd_contrast);
TERN_(HAS_LCD_CONTRAST, ui.set_contrast(lcd_contrast));
if (!validating) {
TERN_(HAS_LCD_CONTRAST, ui.set_contrast(lcd_contrast));
}
}
//