Fix _CAN_HOME (Y homing) bug (#18356)

This commit is contained in:
brian park 2020-06-20 08:19:29 +09:00 committed by GitHub
parent eddd0d91a4
commit bc9e5e2abc
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1537,8 +1537,8 @@ void homeaxis(const AxisEnum axis) {
#define _CAN_HOME(A) (axis == _AXIS(A) && ( \ #define _CAN_HOME(A) (axis == _AXIS(A) && ( \
ENABLED(A##_SPI_SENSORLESS) \ ENABLED(A##_SPI_SENSORLESS) \
|| (_AXIS(A) == Z_AXIS && ENABLED(HOMING_Z_WITH_PROBE)) \ || (_AXIS(A) == Z_AXIS && ENABLED(HOMING_Z_WITH_PROBE)) \
|| (A##_MIN_PIN > 0 && A##_HOME_DIR < 0) \ || (A##_MIN_PIN > -1 && A##_HOME_DIR < 0) \
|| (A##_MAX_PIN > 0 && A##_HOME_DIR > 0) \ || (A##_MAX_PIN > -1 && A##_HOME_DIR > 0) \
)) ))
if (!_CAN_HOME(X) && !_CAN_HOME(Y) && !_CAN_HOME(Z)) return; if (!_CAN_HOME(X) && !_CAN_HOME(Y) && !_CAN_HOME(Z)) return;
#endif #endif