Browse Source

Always reset e_steps between blocks

If e_steps are scheduled, but not ticked, they're just lost.
Only carry over the pressure state.
Yuri D'Elia 4 years ago
parent
commit
9ec0ac9c64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/stepper.cpp

+ 1 - 1
Firmware/stepper.cpp

@@ -354,10 +354,10 @@ FORCE_INLINE void stepper_next_block()
         max_adv_steps = current_block->max_adv_steps;
         e_step_loops = current_block->advance_step_loops;
     } else {
-        e_steps = 0;
         e_step_loops = 1;
         current_adv_steps = 0;
     }
+    e_steps = 0;
     nextAdvanceISR = ADV_NEVER;
     LA_phase = -1;
 #endif