🐛 Init Stepper SPI before PSU Control (#24269)
This commit is contained in:
		@@ -1230,6 +1230,17 @@ void setup() {
 | 
				
			|||||||
    SETUP_RUN(tmc_serial_begin());
 | 
					    SETUP_RUN(tmc_serial_begin());
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  #if HAS_TMC_SPI
 | 
				
			||||||
 | 
					    #if DISABLED(TMC_USE_SW_SPI)
 | 
				
			||||||
 | 
					      SETUP_RUN(SPI.begin());
 | 
				
			||||||
 | 
					    #endif
 | 
				
			||||||
 | 
					    SETUP_RUN(tmc_init_cs_pins());
 | 
				
			||||||
 | 
					  #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  #if HAS_L64XX
 | 
				
			||||||
 | 
					    SETUP_RUN(L64xxManager.init());  // Set up SPI, init drivers
 | 
				
			||||||
 | 
					  #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  #if ENABLED(PSU_CONTROL)
 | 
					  #if ENABLED(PSU_CONTROL)
 | 
				
			||||||
    SETUP_LOG("PSU_CONTROL");
 | 
					    SETUP_LOG("PSU_CONTROL");
 | 
				
			||||||
    powerManager.init();
 | 
					    powerManager.init();
 | 
				
			||||||
@@ -1239,21 +1250,10 @@ void setup() {
 | 
				
			|||||||
    SETUP_RUN(recovery.setup());
 | 
					    SETUP_RUN(recovery.setup());
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  #if HAS_L64XX
 | 
					 | 
				
			||||||
    SETUP_RUN(L64xxManager.init());  // Set up SPI, init drivers
 | 
					 | 
				
			||||||
  #endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  #if HAS_STEPPER_RESET
 | 
					  #if HAS_STEPPER_RESET
 | 
				
			||||||
    SETUP_RUN(disableStepperDrivers());
 | 
					    SETUP_RUN(disableStepperDrivers());
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  #if HAS_TMC_SPI
 | 
					 | 
				
			||||||
    #if DISABLED(TMC_USE_SW_SPI)
 | 
					 | 
				
			||||||
      SETUP_RUN(SPI.begin());
 | 
					 | 
				
			||||||
    #endif
 | 
					 | 
				
			||||||
    SETUP_RUN(tmc_init_cs_pins());
 | 
					 | 
				
			||||||
  #endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  SETUP_RUN(hal.init_board());
 | 
					  SETUP_RUN(hal.init_board());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  SETUP_RUN(esp_wifi_init());
 | 
					  SETUP_RUN(esp_wifi_init());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user