Kaynağa Gözat

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

Scott Lahteine 9 yıl önce
ebeveyn
işleme
ec93383ec8
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6
    0
      Marlin/SanityCheck.h

+ 6
- 0
Marlin/SanityCheck.h Dosyayı Görüntüle

@@ -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…
İptal
Kaydet