Skip to content

Commit

Permalink
🩹 Init brightness/contrast later (MarlinFirmware#23645)
Browse files Browse the repository at this point in the history
  • Loading branch information
GHGiampy authored and Omkar Dhekne committed Mar 25, 2024
1 parent a15f77a commit 69efefc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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)
Expand Down

0 comments on commit 69efefc

Please sign in to comment.