Browse Source

Preserve brightness in EEPROM validate (#19485)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
vanilla_fb_2.0.x
ellensp 4 years ago
committed by GitHub
parent
commit
e3d4e328f9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Marlin/src/module/settings.cpp

3
Marlin/src/module/settings.cpp

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

Loading…
Cancel
Save