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
ellensp and thinkyhead committed Apr 29, 2021
1 parent 8b69d69 commit cbaba01
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 cbaba01

Please sign in to comment.