Bläddra i källkod

Max7219 init last

Scott Lahteine 4 år sedan
förälder
incheckning
8ff25a9566
1 ändrade filer med 5 tillägg och 4 borttagningar
  1. 5
    4
      Marlin/src/MarlinCore.cpp

+ 5
- 4
Marlin/src/MarlinCore.cpp Visa fil

874
  *    • Digipot I2C
874
  *    • Digipot I2C
875
  *    • Z probe sled
875
  *    • Z probe sled
876
  *    • status LEDs
876
  *    • status LEDs
877
+ *    • Max7219
877
  */
878
  */
878
 void setup() {
879
 void setup() {
879
 
880
 
887
     OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW);   // Put Smart Effector into NORMAL mode
888
     OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW);   // Put Smart Effector into NORMAL mode
888
   #endif
889
   #endif
889
 
890
 
890
-  #if ENABLED(MAX7219_DEBUG)
891
-    max7219.init();
892
-  #endif
893
-
894
   #if ENABLED(DISABLE_DEBUG)
891
   #if ENABLED(DISABLE_DEBUG)
895
     // Disable any hardware debug to free up pins for IO
892
     // Disable any hardware debug to free up pins for IO
896
     #ifdef JTAGSWD_DISABLE
893
     #ifdef JTAGSWD_DISABLE
1173
   #if HAS_SERVICE_INTERVALS
1170
   #if HAS_SERVICE_INTERVALS
1174
     ui.reset_status(true);  // Show service messages or keep current status
1171
     ui.reset_status(true);  // Show service messages or keep current status
1175
   #endif
1172
   #endif
1173
+
1174
+  #if ENABLED(MAX7219_DEBUG)
1175
+    max7219.init();
1176
+  #endif
1176
 }
1177
 }
1177
 
1178
 
1178
 /**
1179
 /**

Laddar…
Avbryt
Spara