Restore broken Dual X Carriage
This commit is contained in:
parent
fb044b6a64
commit
887664aa61
@ -185,28 +185,28 @@ volatile long Stepper::endstops_trigsteps[XYZ];
|
|||||||
|
|
||||||
#if ENABLED(X_DUAL_STEPPER_DRIVERS)
|
#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)
|
#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_DIR(v,ALWAYS) \
|
|
||||||
if (extruder_duplication_enabled || ALWAYS) { \
|
|
||||||
X_DIR_WRITE(v); \
|
|
||||||
X2_DIR_WRITE(v); \
|
|
||||||
} \
|
|
||||||
else { \
|
|
||||||
if (current_block->active_extruder) X2_DIR_WRITE(v); else X_DIR_WRITE(v); \
|
|
||||||
}
|
|
||||||
#define X_APPLY_STEP(v,ALWAYS) \
|
|
||||||
if (extruder_duplication_enabled || ALWAYS) { \
|
|
||||||
X_STEP_WRITE(v); \
|
|
||||||
X2_STEP_WRITE(v); \
|
|
||||||
} \
|
|
||||||
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)
|
#define X_APPLY_STEP(v,Q) DUAL_ENDSTOP_APPLY_STEP(X,v)
|
||||||
#else
|
#else
|
||||||
#define X_APPLY_STEP(v,Q) do{ X_STEP_WRITE(v); X2_STEP_WRITE(v); }while(0)
|
#define X_APPLY_STEP(v,Q) do{ X_STEP_WRITE(v); X2_STEP_WRITE(v); }while(0)
|
||||||
#endif
|
#endif
|
||||||
|
#elif ENABLED(DUAL_X_CARRIAGE)
|
||||||
|
#define X_APPLY_DIR(v,ALWAYS) \
|
||||||
|
if (extruder_duplication_enabled || ALWAYS) { \
|
||||||
|
X_DIR_WRITE(v); \
|
||||||
|
X2_DIR_WRITE(v); \
|
||||||
|
} \
|
||||||
|
else { \
|
||||||
|
if (current_block->active_extruder) X2_DIR_WRITE(v); else X_DIR_WRITE(v); \
|
||||||
|
}
|
||||||
|
#define X_APPLY_STEP(v,ALWAYS) \
|
||||||
|
if (extruder_duplication_enabled || ALWAYS) { \
|
||||||
|
X_STEP_WRITE(v); \
|
||||||
|
X2_STEP_WRITE(v); \
|
||||||
|
} \
|
||||||
|
else { \
|
||||||
|
if (current_block->active_extruder) X2_STEP_WRITE(v); else X_STEP_WRITE(v); \
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
#define X_APPLY_DIR(v,Q) X_DIR_WRITE(v)
|
#define X_APPLY_DIR(v,Q) X_DIR_WRITE(v)
|
||||||
#define X_APPLY_STEP(v,Q) X_STEP_WRITE(v)
|
#define X_APPLY_STEP(v,Q) X_STEP_WRITE(v)
|
||||||
|
Loading…
Reference in New Issue
Block a user