mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-26 21:36:21 +00:00
🐛Fix IDEX X2 Direction (#26958)
* Fix IDEX X2 Direction * Sanity Check IDEX X1_MAX_POS
This commit is contained in:
parent
9a570b23a3
commit
2715e5ba1b
@ -954,6 +954,12 @@
|
||||
#define HAS_MOTOR_CURRENT_I2C 1
|
||||
#endif
|
||||
|
||||
#if ENABLED(DUAL_X_CARRIAGE)
|
||||
#ifndef INVERT_X2_DIR
|
||||
#define INVERT_X2_DIR INVERT_X_DIR
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// X2 but not IDEX => Dual Synchronized X Steppers
|
||||
#if defined(X2_DRIVER_TYPE) && DISABLED(DUAL_X_CARRIAGE)
|
||||
#define HAS_SYNCED_X_STEPPERS 1
|
||||
|
@ -1837,6 +1837,8 @@ static_assert(NUM_SERVOS <= NUM_SERVO_PLUGS, "NUM_SERVOS (or some servo index) i
|
||||
#error "DUAL_X_CARRIAGE requires X2_HOME_POS, X2_MIN_POS, and X2_MAX_POS."
|
||||
#elif X_HOME_TO_MAX
|
||||
#error "DUAL_X_CARRIAGE requires X_HOME_DIR -1."
|
||||
#elif (X2_HOME_POS <= X1_MAX_POS) || (X2_MAX_POS < X1_MAX_POS)
|
||||
#error "DUAL_X_CARRIAGE will crash if X1 can meet or exceed X2 travel."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user