🩹 Init brightness/contrast later (#23645)

This commit is contained in:
GHGiampy 2022-02-05 01:44:21 +01:00 committed by GitHub
parent 1be3b8df4a
commit 5439a34c4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)