From b04ed8f9c3c4b8e9031e418095e1418733f662e0 Mon Sep 17 00:00:00 2001 From: esenapaj Date: Mon, 19 Sep 2016 21:05:22 +0900 Subject: [PATCH] Fix inverted stepper signal of ADVANCED and LIN_ADVANCED --- Marlin/stepper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index 4026cc2edb..a25f0c76e9 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -682,12 +682,12 @@ void Stepper::isr() { OCR0A = old_OCR0A; #define START_E_PULSE(INDEX) \ - if (e_steps[INDEX]) E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN) + if (e_steps[INDEX]) E## INDEX ##_STEP_WRITE(!INVERT_E_STEP_PIN) #define STOP_E_PULSE(INDEX) \ if (e_steps[INDEX]) { \ e_steps[INDEX] <= 0 ? ++e_steps[INDEX] : --e_steps[INDEX]; \ - E## INDEX ##_STEP_WRITE(!INVERT_E_STEP_PIN); \ + E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); \ } // Step all E steppers that have steps