From 8ff25a9566dd5573f577e42f07003d98ba50ce0e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 7 Mar 2020 00:16:33 -0600 Subject: [PATCH] Max7219 init last --- Marlin/src/MarlinCore.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Marlin/src/MarlinCore.cpp b/Marlin/src/MarlinCore.cpp index dec731532d..85320e332c 100644 --- a/Marlin/src/MarlinCore.cpp +++ b/Marlin/src/MarlinCore.cpp @@ -874,6 +874,7 @@ void stop() { * • Digipot I2C * • Z probe sled * • status LEDs + * • Max7219 */ void setup() { @@ -887,10 +888,6 @@ void setup() { OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW); // Put Smart Effector into NORMAL mode #endif - #if ENABLED(MAX7219_DEBUG) - max7219.init(); - #endif - #if ENABLED(DISABLE_DEBUG) // Disable any hardware debug to free up pins for IO #ifdef JTAGSWD_DISABLE @@ -1173,6 +1170,10 @@ void setup() { #if HAS_SERVICE_INTERVALS ui.reset_status(true); // Show service messages or keep current status #endif + + #if ENABLED(MAX7219_DEBUG) + max7219.init(); + #endif } /**