From 9ec0ac9c64324067fa220886d3d8e5a0ceb9ce27 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Wed, 8 Apr 2020 22:30:39 +0200 Subject: [PATCH] Always reset e_steps between blocks If e_steps are scheduled, but not ticked, they're just lost. Only carry over the pressure state. --- Firmware/stepper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/stepper.cpp b/Firmware/stepper.cpp index 6e0937cf..c7105da7 100644 --- a/Firmware/stepper.cpp +++ b/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