🩹 Init brightness/contrast later (#23645)

This commit is contained in:
GHGiampy 2022-02-05 01:44:21 +01:00 committed by Scott Lahteine
parent f193729f54
commit 0d07c49c1d

View File

@ -578,9 +578,6 @@ void MarlinSettings::postprocess() {
update_software_endstops((AxisEnum)i);
}
TERN_(HAS_LCD_CONTRAST, ui.refresh_contrast());
TERN_(HAS_LCD_BRIGHTNESS, ui.refresh_brightness());
TERN_(ENABLE_LEVELING_FADE_HEIGHT, set_z_fade_height(new_z_fade_height, false)); // false = no report
TERN_(AUTO_BED_LEVELING_BILINEAR, refresh_bed_level());
@ -602,6 +599,10 @@ void MarlinSettings::postprocess() {
// Various factors can change the current position
if (oldpos != current_position)
report_current_position();
// Moved as last update due to interference with Neopixel init
TERN_(HAS_LCD_CONTRAST, ui.refresh_contrast());
TERN_(HAS_LCD_BRIGHTNESS, ui.refresh_brightness());
}
#if BOTH(PRINTCOUNTER, EEPROM_SETTINGS)