Browse Source

Support for a 5th stepper in stepper code

Scott Lahteine 7 years ago
parent
commit
8d5a37fb3d
1 changed files with 10 additions and 1 deletions
  1. 10
    1
      Marlin/stepper.cpp

+ 10
- 1
Marlin/stepper.cpp View File

@@ -370,7 +370,7 @@ void Stepper::isr() {
370 370
         ocr_val = (remainder < OCR_VAL_TOLERANCE) ? ENDSTOP_NOMINAL_OCR_VAL + remainder : ENDSTOP_NOMINAL_OCR_VAL; \
371 371
         step_remaining = (uint16_t)L - ocr_val; \
372 372
       } \
373
-    } while(0)
373
+    }while(0)
374 374
 
375 375
     if (step_remaining && ENDSTOPS_ENABLED) {   // Just check endstops - not yet time for a step
376 376
       endstops.update();
@@ -862,6 +862,9 @@ void Stepper::isr() {
862 862
         SET_E_STEP_DIR(2);
863 863
         #if E_STEPPERS > 3
864 864
           SET_E_STEP_DIR(3);
865
+          #if E_STEPPERS > 4
866
+            SET_E_STEP_DIR(4);
867
+          #endif
865 868
         #endif
866 869
       #endif
867 870
     #endif
@@ -880,6 +883,9 @@ void Stepper::isr() {
880 883
           START_E_PULSE(2);
881 884
           #if E_STEPPERS > 3
882 885
             START_E_PULSE(3);
886
+            #if E_STEPPERS > 4
887
+              START_E_PULSE(4);
888
+            #endif
883 889
           #endif
884 890
         #endif
885 891
       #endif
@@ -899,6 +905,9 @@ void Stepper::isr() {
899 905
           STOP_E_PULSE(2);
900 906
           #if E_STEPPERS > 3
901 907
             STOP_E_PULSE(3);
908
+            #if E_STEPPERS > 4
909
+              STOP_E_PULSE(4);
910
+            #endif
902 911
           #endif
903 912
         #endif
904 913
       #endif

Loading…
Cancel
Save