Browse Source

Fix case light on boot (#12919)

Giuliano Zaro 6 years ago
parent
commit
8f4c6e6d1a
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/Marlin.cpp

+ 4
- 4
Marlin/src/Marlin.cpp View File

@@ -809,10 +809,6 @@ void setup() {
809 809
     OUT_WRITE(PHOTOGRAPH_PIN, LOW);
810 810
   #endif
811 811
 
812
-  #if HAS_CASE_LIGHT
813
-    update_case_light();
814
-  #endif
815
-
816 812
   #if ENABLED(SPINDLE_LASER_ENABLE)
817 813
     OUT_WRITE(SPINDLE_LASER_ENABLE_PIN, !SPINDLE_LASER_ENABLE_INVERT);  // init spindle to off
818 814
     #if SPINDLE_DIR_CHANGE
@@ -873,6 +869,10 @@ void setup() {
873 869
     #endif
874 870
   #endif
875 871
 
872
+  #if HAS_CASE_LIGHT
873
+    update_case_light();
874
+  #endif
875
+
876 876
   #if ENABLED(MK2_MULTIPLEXER)
877 877
     SET_OUTPUT(E_MUX0_PIN);
878 878
     SET_OUTPUT(E_MUX1_PIN);

Loading…
Cancel
Save