Max7219 init last

This commit is contained in:
Scott Lahteine 2020-03-07 00:16:33 -06:00
parent e9f451bffe
commit 8ff25a9566

View File

@ -874,6 +874,7 @@ void stop() {
* Digipot I2C * Digipot I2C
* Z probe sled * Z probe sled
* status LEDs * status LEDs
* Max7219
*/ */
void setup() { void setup() {
@ -887,10 +888,6 @@ void setup() {
OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW); // Put Smart Effector into NORMAL mode OUT_WRITE(SMART_EFFECTOR_MOD_PIN, LOW); // Put Smart Effector into NORMAL mode
#endif #endif
#if ENABLED(MAX7219_DEBUG)
max7219.init();
#endif
#if ENABLED(DISABLE_DEBUG) #if ENABLED(DISABLE_DEBUG)
// Disable any hardware debug to free up pins for IO // Disable any hardware debug to free up pins for IO
#ifdef JTAGSWD_DISABLE #ifdef JTAGSWD_DISABLE
@ -1173,6 +1170,10 @@ void setup() {
#if HAS_SERVICE_INTERVALS #if HAS_SERVICE_INTERVALS
ui.reset_status(true); // Show service messages or keep current status ui.reset_status(true); // Show service messages or keep current status
#endif #endif
#if ENABLED(MAX7219_DEBUG)
max7219.init();
#endif
} }
/** /**