|
@@ -1417,9 +1417,11 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
1417
|
1417
|
/**
|
1418
|
1418
|
* Homing
|
1419
|
1419
|
*/
|
1420
|
|
-#if X_HOME_BUMP_MM < 0 || Y_HOME_BUMP_MM < 0 || Z_HOME_BUMP_MM < 0
|
1421
|
|
- #error "[XYZ]_HOME_BUMP_MM must be greater than or equal to 0."
|
1422
|
|
-#endif
|
|
1420
|
+constexpr float hbm[] = HOMING_BUMP_MM;
|
|
1421
|
+static_assert(COUNT(hbm) == XYZ, "HOMING_BUMP_MM requires X, Y, and Z elements.");
|
|
1422
|
+static_assert(hbm[X_AXIS] >= 0, "HOMING_BUMP_MM.X must be greater than or equal to 0.");
|
|
1423
|
+static_assert(hbm[Y_AXIS] >= 0, "HOMING_BUMP_MM.Y must be greater than or equal to 0.");
|
|
1424
|
+static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal to 0.");
|
1423
|
1425
|
|
1424
|
1426
|
#if ENABLED(CODEPENDENT_XY_HOMING)
|
1425
|
1427
|
#if ENABLED(QUICK_HOME)
|