Parcourir la source

fix TMC2208 boot loop with SW UART

Need stepper .begin() before calling susbequent .push()
Chris il y a 6 ans
Parent
révision
36a0376c36
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 5
    4
      Marlin/src/Marlin.cpp

+ 5
- 4
Marlin/src/Marlin.cpp Voir le fichier

@@ -872,7 +872,11 @@ void setup() {
872 872
   #endif
873 873
 
874 874
   setup_killpin();
875
-
875
+  
876
+  #if HAS_DRIVER(TMC2208)
877
+    tmc2208_serial_begin();
878
+  #endif
879
+  
876 880
   setup_powerhold();
877 881
 
878 882
   #if HAS_STEPPER_RESET
@@ -904,9 +908,6 @@ void setup() {
904 908
     #endif
905 909
     tmc_init_cs_pins();
906 910
   #endif
907
-  #if HAS_DRIVER(TMC2208)
908
-    tmc2208_serial_begin();
909
-  #endif
910 911
 
911 912
   #ifdef BOARD_INIT
912 913
     BOARD_INIT();

Chargement…
Annuler
Enregistrer