Browse Source

🔧 Set Z_PROBE_OFFSET_RANGE_MIN/MAX for MBL (#22663)

ellensp 3 years ago
parent
commit
1f5eacac09
No account linked to committer's email address
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      Marlin/src/inc/Conditionals_post.h

+ 6
- 4
Marlin/src/inc/Conditionals_post.h View File

2862
 /**
2862
 /**
2863
  * Bed Probe dependencies
2863
  * Bed Probe dependencies
2864
  */
2864
  */
2865
-#if HAS_BED_PROBE
2866
-  #if BOTH(ENDSTOPPULLUPS, HAS_Z_MIN_PROBE_PIN)
2867
-    #define ENDSTOPPULLUP_ZMIN_PROBE
2868
-  #endif
2865
+#if EITHER(MESH_BED_LEVELING, HAS_BED_PROBE)
2869
   #ifndef Z_PROBE_OFFSET_RANGE_MIN
2866
   #ifndef Z_PROBE_OFFSET_RANGE_MIN
2870
     #define Z_PROBE_OFFSET_RANGE_MIN -20
2867
     #define Z_PROBE_OFFSET_RANGE_MIN -20
2871
   #endif
2868
   #endif
2872
   #ifndef Z_PROBE_OFFSET_RANGE_MAX
2869
   #ifndef Z_PROBE_OFFSET_RANGE_MAX
2873
     #define Z_PROBE_OFFSET_RANGE_MAX 20
2870
     #define Z_PROBE_OFFSET_RANGE_MAX 20
2874
   #endif
2871
   #endif
2872
+#endif
2873
+#if HAS_BED_PROBE
2874
+  #if BOTH(ENDSTOPPULLUPS, HAS_Z_MIN_PROBE_PIN)
2875
+    #define ENDSTOPPULLUP_ZMIN_PROBE
2876
+  #endif
2875
   #ifndef XY_PROBE_FEEDRATE
2877
   #ifndef XY_PROBE_FEEDRATE
2876
     #define XY_PROBE_FEEDRATE ((homing_feedrate_mm_m.x + homing_feedrate_mm_m.y) / 2)
2878
     #define XY_PROBE_FEEDRATE ((homing_feedrate_mm_m.x + homing_feedrate_mm_m.y) / 2)
2877
   #endif
2879
   #endif

Loading…
Cancel
Save