Browse Source

Add SanityCheck for bed probe position settings (PR#2282)

Scott Lahteine 9 years ago
parent
commit
ec93383ec8
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Marlin/SanityCheck.h

+ 6
- 0
Marlin/SanityCheck.h View File

@@ -153,6 +153,12 @@
153 153
      */
154 154
     #ifdef AUTO_BED_LEVELING_GRID
155 155
       #ifndef DELTA_PROBABLE_RADIUS
156
+        // Be sure points are in the right order
157
+        #if LEFT_PROBE_BED_POSITION > RIGHT_PROBE_BED_POSITION
158
+          #error LEFT_PROBE_BED_POSITION must be less than RIGHT_PROBE_BED_POSITION.
159
+        #elif FRONT_PROBE_BED_POSITION > BACK_PROBE_BED_POSITION
160
+          #error BACK_PROBE_BED_POSITION must be less than FRONT_PROBE_BED_POSITION.
161
+        #endif
156 162
         // Make sure probing points are reachable
157 163
         #if LEFT_PROBE_BED_POSITION < MIN_PROBE_X
158 164
           #error "The given LEFT_PROBE_BED_POSITION can't be reached by the probe."

Loading…
Cancel
Save