Browse Source

Fix _CAN_HOME (Y homing) bug (#18356)

vanilla_fb_2.0.x
brian park 4 years ago
committed by GitHub
parent
commit
bc9e5e2abc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Marlin/src/module/motion.cpp

4
Marlin/src/module/motion.cpp

@ -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

Loading…
Cancel
Save