Browse Source

Max7219 init last

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
8ff25a9566
  1. 9
      Marlin/src/MarlinCore.cpp

9
Marlin/src/MarlinCore.cpp

@ -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
} }
/** /**

Loading…
Cancel
Save