Skip to content

Commit

Permalink
Preserve brightness in EEPROM validate (#19485)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
  • Loading branch information
ellensp and thinkyhead authored Sep 23, 2020
1 parent 93421f3 commit e3d4e32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

//
Expand Down

0 comments on commit e3d4e32

Please sign in to comment.