brian park
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
Marlin/src/module/motion.cpp
|
@ -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 |
|
|