Skip to content

Commit

Permalink
🔧 Sanity check Z_CLEARANCE_FOR_HOMING (MarlinFirmware#26721)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndere1 authored Jan 23, 2024
1 parent f1a5340 commit d79bcef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,13 @@ static_assert(NUM_SERVOS <= NUM_SERVO_PLUGS, "NUM_SERVOS (or some servo index) i
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.");
#endif

/**
* Make sure Z_CLEARANCE_FOR_HOMING is below Z_MAX_POS
*/
#if HAS_Z_AXIS
static_assert(Z_CLEARANCE_FOR_HOMING <= Z_MAX_POS, "Z_CLEARANCE_FOR_HOMING must be smaller than or equal to Z_MAX_POS.");
#endif

// Check Safe Bed Leveling settings
#if HAS_SAFE_BED_LEVELING
#if defined(SAFE_BED_LEVELING_START_Y) && !defined(SAFE_BED_LEVELING_START_X)
Expand Down

0 comments on commit d79bcef

Please sign in to comment.