Skip to content

Commit

Permalink
Preserve brightness in EEPROM validate (MarlinFirmware#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
2 people authored and vgadreau committed Dec 9, 2020
1 parent ab5a8aa commit b7aecd7
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 b7aecd7

Please sign in to comment.