Skip to content

Commit

Permalink
Z_SENSORLESS sanity checks (MarlinFirmware#20421)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Smith <jason.inet@gmail.com>
  • Loading branch information
2 people authored and dpreed committed Feb 5, 2021
1 parent 6867e1a commit b80adce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -2654,6 +2654,10 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
#if ENABLED(SENSORLESS_PROBING)
#if ENABLED(DELTA) && !(X_SENSORLESS && Y_SENSORLESS && Z_SENSORLESS)
#error "SENSORLESS_PROBING for DELTA requires TMC stepper drivers with StallGuard on X, Y, and Z axes."
#elif ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
#error "SENSORLESS_PROBING cannot be used with Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN."
#elif ENABLED(USE_PROBE_FOR_Z_HOMING)
#error "SENSORLESS_PROBING cannot be used with USE_PROBE_FOR_Z_HOMING."
#elif !Z_SENSORLESS
#error "SENSORLESS_PROBING requires a TMC stepper driver with StallGuard on Z."
#endif
Expand Down

0 comments on commit b80adce

Please sign in to comment.