Browse Source

Fix inverted stepper signal of ADVANCED and LIN_ADVANCED

esenapaj 8 years ago
parent
commit
b04ed8f9c3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/stepper.cpp

+ 2
- 2
Marlin/stepper.cpp View File

@@ -682,12 +682,12 @@ void Stepper::isr() {
682 682
     OCR0A = old_OCR0A;
683 683
 
684 684
     #define START_E_PULSE(INDEX) \
685
-      if (e_steps[INDEX]) E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN)
685
+      if (e_steps[INDEX]) E## INDEX ##_STEP_WRITE(!INVERT_E_STEP_PIN)
686 686
 
687 687
     #define STOP_E_PULSE(INDEX) \
688 688
       if (e_steps[INDEX]) { \
689 689
         e_steps[INDEX] <= 0 ? ++e_steps[INDEX] : --e_steps[INDEX]; \
690
-        E## INDEX ##_STEP_WRITE(!INVERT_E_STEP_PIN); \
690
+        E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); \
691 691
       }
692 692
 
693 693
     // Step all E steppers that have steps

Loading…
Cancel
Save