Browse Source

Max7219 init last

Scott Lahteine 4 years ago
parent
commit
8ff25a9566
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      Marlin/src/MarlinCore.cpp

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

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

Loading…
Cancel
Save