From 0d07c49c1d91483c59294fce2e58577a4bf23bb9 Mon Sep 17 00:00:00 2001 From: GHGiampy <83699429+GHGiampy@users.noreply.github.com> Date: Sat, 5 Feb 2022 01:44:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Init=20brightness/contrast=20lat?= =?UTF-8?q?er=20(#23645)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/module/settings.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Marlin/src/module/settings.cpp b/Marlin/src/module/settings.cpp index b737d41c2d..ab498b7df3 100644 --- a/Marlin/src/module/settings.cpp +++ b/Marlin/src/module/settings.cpp @@ -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)