Allow Z_SAFE_HOMING sanity checks to handle floats

2.0.x
Scott Lahteine 7 years ago
parent 889fd5f71f
commit f6d13e2295

@ -920,15 +920,15 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
*/ */
#if ENABLED(Z_SAFE_HOMING) #if ENABLED(Z_SAFE_HOMING)
#if HAS_BED_PROBE #if HAS_BED_PROBE
#if !WITHIN(Z_SAFE_HOMING_X_POINT, MIN_PROBE_X, MAX_PROBE_X) static_assert(WITHIN(Z_SAFE_HOMING_X_POINT, MIN_PROBE_X, MAX_PROBE_X),
#error "Z_SAFE_HOMING_X_POINT is outside the probe region." "Z_SAFE_HOMING_X_POINT is outside the probe region.");
#elif !WITHIN(Z_SAFE_HOMING_Y_POINT, MIN_PROBE_Y, MAX_PROBE_Y) static_assert(WITHIN(Z_SAFE_HOMING_Y_POINT, MIN_PROBE_Y, MAX_PROBE_Y),
#error "Z_SAFE_HOMING_Y_POINT is outside the probe region." "Z_SAFE_HOMING_Y_POINT is outside the probe region.");
#endif #else
#elif !WITHIN(Z_SAFE_HOMING_X_POINT, X_MIN_POS, X_MAX_POS) static_assert(WITHIN(Z_SAFE_HOMING_X_POINT, X_MIN_POS, X_MAX_POS),
#error "Z_SAFE_HOMING_X_POINT can't be reached by the nozzle." "Z_SAFE_HOMING_X_POINT can't be reached by the nozzle.");
#elif !WITHIN(Z_SAFE_HOMING_Y_POINT, Y_MIN_POS, Y_MAX_POS) static_assert(WITHIN(Z_SAFE_HOMING_Y_POINT, Y_MIN_POS, Y_MAX_POS),
#error "Z_SAFE_HOMING_Y_POINT can't be reached by the nozzle." "Z_SAFE_HOMING_Y_POINT can't be reached by the nozzle.");
#endif #endif
#endif // Z_SAFE_HOMING #endif // Z_SAFE_HOMING

Loading…
Cancel
Save