|
|
@ -185,7 +185,12 @@ volatile long Stepper::endstops_trigsteps[XYZ]; |
|
|
|
|
|
|
|
#if ENABLED(X_DUAL_STEPPER_DRIVERS) |
|
|
|
#define X_APPLY_DIR(v,Q) do{ X_DIR_WRITE(v); X2_DIR_WRITE((v) != INVERT_X2_VS_X_DIR); }while(0) |
|
|
|
#if ENABLED(DUAL_X_CARRIAGE) |
|
|
|
#if ENABLED(X_DUAL_ENDSTOPS) |
|
|
|
#define X_APPLY_STEP(v,Q) DUAL_ENDSTOP_APPLY_STEP(X,v) |
|
|
|
#else |
|
|
|
#define X_APPLY_STEP(v,Q) do{ X_STEP_WRITE(v); X2_STEP_WRITE(v); }while(0) |
|
|
|
#endif |
|
|
|
#elif ENABLED(DUAL_X_CARRIAGE) |
|
|
|
#define X_APPLY_DIR(v,ALWAYS) \ |
|
|
|
if (extruder_duplication_enabled || ALWAYS) { \ |
|
|
|
X_DIR_WRITE(v); \ |
|
|
@ -202,11 +207,6 @@ volatile long Stepper::endstops_trigsteps[XYZ]; |
|
|
|
else { \ |
|
|
|
if (current_block->active_extruder) X2_STEP_WRITE(v); else X_STEP_WRITE(v); \ |
|
|
|
} |
|
|
|
#elif ENABLED(X_DUAL_ENDSTOPS) |
|
|
|
#define X_APPLY_STEP(v,Q) DUAL_ENDSTOP_APPLY_STEP(X,v) |
|
|
|
#else |
|
|
|
#define X_APPLY_STEP(v,Q) do{ X_STEP_WRITE(v); X2_STEP_WRITE(v); }while(0) |
|
|
|
#endif |
|
|
|
#else |
|
|
|
#define X_APPLY_DIR(v,Q) X_DIR_WRITE(v) |
|
|
|
#define X_APPLY_STEP(v,Q) X_STEP_WRITE(v) |
|
|
|