Browse Source

[bugfix_2.0.x] - LIN_ADVANCE V1.5 stepper.cpp (#9797)

Removal of obsolete (i) from port of LIN_ADVANCE from V1.1.x to V2..0.x.
UtterlyD 7 years ago
parent
commit
813f9f3082
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

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

Loading…
Cancel
Save