Fix _CAN_HOME (Y homing) bug (#18356)
This commit is contained in:
parent
eddd0d91a4
commit
bc9e5e2abc
1 changed files with 2 additions and 2 deletions
|
@ -1537,8 +1537,8 @@ void homeaxis(const AxisEnum axis) {
|
|||
#define _CAN_HOME(A) (axis == _AXIS(A) && ( \
|
||||
ENABLED(A##_SPI_SENSORLESS) \
|
||||
|| (_AXIS(A) == Z_AXIS && ENABLED(HOMING_Z_WITH_PROBE)) \
|
||||
|| (A##_MIN_PIN > 0 && A##_HOME_DIR < 0) \
|
||||
|| (A##_MAX_PIN > 0 && A##_HOME_DIR > 0) \
|
||||
|| (A##_MIN_PIN > -1 && A##_HOME_DIR < 0) \
|
||||
|| (A##_MAX_PIN > -1 && A##_HOME_DIR > 0) \
|
||||
))
|
||||
if (!_CAN_HOME(X) && !_CAN_HOME(Y) && !_CAN_HOME(Z)) return;
|
||||
#endif
|
||||
|
|
Reference in a new issue