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

Loading…
Cancel
Save