Browse Source

Fix coolstep_min_speed / sensorless homing

Fix #8890
Scott Lahteine 7 years ago
parent
commit
f3fed52348
2 changed files with 1 additions and 3 deletions
  1. 1
    1
      Marlin/src/feature/tmc_util.cpp
  2. 0
    2
      Marlin/src/module/stepper_indirection.cpp

+ 1
- 1
Marlin/src/feature/tmc_util.cpp View File

582
 #if ENABLED(SENSORLESS_HOMING)
582
 #if ENABLED(SENSORLESS_HOMING)
583
 
583
 
584
   void tmc_sensorless_homing(TMC2130Stepper &st, const bool enable/*=true*/) {
584
   void tmc_sensorless_homing(TMC2130Stepper &st, const bool enable/*=true*/) {
585
+    st.coolstep_min_speed(enable ? 1024UL * 1024UL - 1UL : 0);
585
     #if ENABLED(STEALTHCHOP)
586
     #if ENABLED(STEALTHCHOP)
586
-      st.coolstep_min_speed(enable ? 1024UL * 1024UL - 1UL : 0);
587
       st.stealthChop(!enable);
587
       st.stealthChop(!enable);
588
     #endif
588
     #endif
589
     st.diag1_stall(enable ? 1 : 0);
589
     st.diag1_stall(enable ? 1 : 0);

+ 0
- 2
Marlin/src/module/stepper_indirection.cpp View File

206
       #if ENABLED(HYBRID_THRESHOLD)
206
       #if ENABLED(HYBRID_THRESHOLD)
207
         st.stealth_max_speed(12650000UL*microsteps/(256*thrs*spmm));
207
         st.stealth_max_speed(12650000UL*microsteps/(256*thrs*spmm));
208
       #endif
208
       #endif
209
-    #elif ENABLED(SENSORLESS_HOMING)
210
-      st.coolstep_min_speed(1024UL * 1024UL - 1UL);
211
     #endif
209
     #endif
212
     st.GSTAT(); // Clear GSTAT
210
     st.GSTAT(); // Clear GSTAT
213
   }
211
   }

Loading…
Cancel
Save