Browse Source

No pulse delay on last e_steps in advance isr

Scott Lahteine 7 years ago
parent
commit
07ae23fe14
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/module/stepper.cpp

+ 2
- 2
Marlin/src/module/stepper.cpp View File

@@ -851,9 +851,9 @@ void Stepper::isr() {
851 851
 
852 852
       // For minimum pulse time wait before looping
853 853
       #if EXTRA_CYCLES_E > 20
854
-        while (EXTRA_CYCLES_E > (hal_timer_t)(HAL_timer_get_count(PULSE_TIMER_NUM) - pulse_start) * (PULSE_TIMER_PRESCALE)) { /* nada */ }
854
+        if (e_steps) while (EXTRA_CYCLES_E > (hal_timer_t)(HAL_timer_get_count(PULSE_TIMER_NUM) - pulse_start) * (PULSE_TIMER_PRESCALE)) { /* nada */ }
855 855
       #elif EXTRA_CYCLES_E > 0
856
-        DELAY_NOPS(EXTRA_CYCLES_E);
856
+        if (e_steps) DELAY_NOPS(EXTRA_CYCLES_E);
857 857
       #endif
858 858
 
859 859
     } // e_steps

Loading…
Cancel
Save