From 3c6d2d7711c77b591c83a75e16da5ad435c49a86 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 9 Mar 2018 05:24:10 -0600 Subject: [PATCH] Add more delay before pulse off in Linear Advance ISR A capital idea from https://github.com/MarlinFirmware/Marlin/pull/9914#issuecomment-371614153 --- Marlin/stepper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index 2bcafa469c..de9a39b8a4 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -797,7 +797,7 @@ void Stepper::isr() { #define STOP_E_PULSE(INDEX) do{ if (e_steps) { E_STEP_WRITE(INVERT_E_STEP_PIN); e_steps < 0 ? ++e_steps : --e_steps; } }while(0) #else #define START_E_PULSE(INDEX) do{ if (e_steps) E## INDEX ##_STEP_WRITE(!INVERT_E_STEP_PIN); }while(0) - #define STOP_E_PULSE(INDEX) do { if (e_steps) { E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); e_steps < 0 ? ++e_steps : --e_steps; } }while(0) + #define STOP_E_PULSE(INDEX) do { if (e_steps) { e_steps < 0 ? ++e_steps : --e_steps; E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); } }while(0) #endif if (use_advance_lead) {