Fix CALIBRATION_GCODE pin handling
This commit is contained in:
@ -128,13 +128,15 @@ inline void park_above_object(measurements_t &m, const float uncertainty) {
|
||||
#endif
|
||||
|
||||
inline bool read_calibration_pin() {
|
||||
#if HAS_CALIBRATION_PIN
|
||||
return (READ(CALIBRATION_PIN) != CALIBRATION_PIN_INVERTING);
|
||||
#elif ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
|
||||
return (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING);
|
||||
#else
|
||||
return (READ(Z_MIN_PROBE_PIN) != Z_MIN_PROBE_ENDSTOP_INVERTING);
|
||||
#endif
|
||||
return (
|
||||
#if PIN_EXISTS(CALIBRATION)
|
||||
READ(CALIBRATION_PIN) != CALIBRATION_PIN_INVERTING
|
||||
#elif HAS_CUSTOM_PROBE_PIN
|
||||
READ(Z_MIN_PROBE_PIN) != Z_MIN_PROBE_ENDSTOP_INVERTING
|
||||
#else
|
||||
READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user