🔧 Set Z_PROBE_OFFSET_RANGE_MIN/MAX for MBL (#22663)

This commit is contained in:
ellensp 2021-08-31 19:26:12 +12:00 committed by GitHub
parent 2c5daa0722
commit 1f5eacac09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2862,16 +2862,18 @@
/** /**
* Bed Probe dependencies * Bed Probe dependencies
*/ */
#if HAS_BED_PROBE #if EITHER(MESH_BED_LEVELING, HAS_BED_PROBE)
#if BOTH(ENDSTOPPULLUPS, HAS_Z_MIN_PROBE_PIN)
#define ENDSTOPPULLUP_ZMIN_PROBE
#endif
#ifndef Z_PROBE_OFFSET_RANGE_MIN #ifndef Z_PROBE_OFFSET_RANGE_MIN
#define Z_PROBE_OFFSET_RANGE_MIN -20 #define Z_PROBE_OFFSET_RANGE_MIN -20
#endif #endif
#ifndef Z_PROBE_OFFSET_RANGE_MAX #ifndef Z_PROBE_OFFSET_RANGE_MAX
#define Z_PROBE_OFFSET_RANGE_MAX 20 #define Z_PROBE_OFFSET_RANGE_MAX 20
#endif #endif
#endif
#if HAS_BED_PROBE
#if BOTH(ENDSTOPPULLUPS, HAS_Z_MIN_PROBE_PIN)
#define ENDSTOPPULLUP_ZMIN_PROBE
#endif
#ifndef XY_PROBE_FEEDRATE #ifndef XY_PROBE_FEEDRATE
#define XY_PROBE_FEEDRATE ((homing_feedrate_mm_m.x + homing_feedrate_mm_m.y) / 2) #define XY_PROBE_FEEDRATE ((homing_feedrate_mm_m.x + homing_feedrate_mm_m.y) / 2)
#endif #endif