Merge pull request #4720 from thinkyhead/rc_allow_stepper_omission

Patch stepper.cpp to allow omitting steppers
2.0.x
Scott Lahteine 8 years ago committed by GitHub
commit 8241cf9901

@ -289,9 +289,15 @@ void Stepper::set_directions() {
count_direction[AXIS ##_AXIS] = 1; \
}
#if HAS_X_DIR
SET_STEP_DIR(X); // A
#endif
#if HAS_Y_DIR
SET_STEP_DIR(Y); // B
#endif
#if HAS_Z_DIR
SET_STEP_DIR(Z); // C
#endif
#if DISABLED(ADVANCE)
if (motor_direction(E_AXIS)) {
@ -447,9 +453,15 @@ void Stepper::isr() {
_COUNTER(AXIS) += current_block->steps[_AXIS(AXIS)]; \
if (_COUNTER(AXIS) > 0) { _APPLY_STEP(AXIS)(!_INVERT_STEP_PIN(AXIS),0); }
#if HAS_X_STEP
STEP_ADD(X);
#endif
#if HAS_Y_STEP
STEP_ADD(Y);
#endif
#if HAS_Z_STEP
STEP_ADD(Z);
#endif
#if DISABLED(ADVANCE) && DISABLED(LIN_ADVANCE)
#if ENABLED(MIXING_EXTRUDER)
@ -474,9 +486,15 @@ void Stepper::isr() {
_APPLY_STEP(AXIS)(_INVERT_STEP_PIN(AXIS),0); \
}
#if HAS_X_STEP
STEP_IF_COUNTER(X);
#endif
#if HAS_Y_STEP
STEP_IF_COUNTER(Y);
#endif
#if HAS_Z_STEP
STEP_IF_COUNTER(Z);
#endif
#if DISABLED(ADVANCE) && DISABLED(LIN_ADVANCE)
#if ENABLED(MIXING_EXTRUDER)

Loading…
Cancel
Save