Skip to content

Commit d79bcef

Browse files
authored
🔧 Sanity check Z_CLEARANCE_FOR_HOMING (MarlinFirmware#26721)
1 parent f1a5340 commit d79bcef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Marlin/src/inc/SanityCheck.h

+7
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,13 @@ static_assert(NUM_SERVOS <= NUM_SERVO_PLUGS, "NUM_SERVOS (or some servo index) i
17251725
static_assert(WITHIN(Z_SAFE_HOMING_Y_POINT, Y_MIN_POS, Y_MAX_POS), "Z_SAFE_HOMING_Y_POINT can't be reached by the nozzle.");
17261726
#endif
17271727

1728+
/**
1729+
* Make sure Z_CLEARANCE_FOR_HOMING is below Z_MAX_POS
1730+
*/
1731+
#if HAS_Z_AXIS
1732+
static_assert(Z_CLEARANCE_FOR_HOMING <= Z_MAX_POS, "Z_CLEARANCE_FOR_HOMING must be smaller than or equal to Z_MAX_POS.");
1733+
#endif
1734+
17281735
// Check Safe Bed Leveling settings
17291736
#if HAS_SAFE_BED_LEVELING
17301737
#if defined(SAFE_BED_LEVELING_START_Y) && !defined(SAFE_BED_LEVELING_START_X)

0 commit comments

Comments
 (0)