Browse Source

🩹 Init brightness/contrast later (#23645)

GHGiampy 3 years ago
parent
commit
5439a34c4b
No account linked to committer's email address
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      Marlin/src/module/settings.cpp

+ 4
- 3
Marlin/src/module/settings.cpp View File

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

Loading…
Cancel
Save