|
@@ -283,9 +283,9 @@
|
283
|
283
|
#elif defined(NEOPIXEL_RGBW_LED)
|
284
|
284
|
#error "NEOPIXEL_RGBW_LED is now NEOPIXEL_LED. Please update your configuration."
|
285
|
285
|
#elif ENABLED(DELTA) && defined(DELTA_PROBEABLE_RADIUS)
|
286
|
|
- #error "Remove DELTA_PROBEABLE_RADIUS and use MIN_PROBE_EDGE to inset the probe area instead."
|
|
286
|
+ #error "Remove DELTA_PROBEABLE_RADIUS and use PROBING_MARGIN to inset the probe area instead."
|
287
|
287
|
#elif ENABLED(DELTA) && defined(DELTA_CALIBRATION_RADIUS)
|
288
|
|
- #error "Remove DELTA_CALIBRATION_RADIUS and use MIN_PROBE_EDGE to inset the probe area instead."
|
|
288
|
+ #error "Remove DELTA_CALIBRATION_RADIUS and use PROBING_MARGIN to inset the probe area instead."
|
289
|
289
|
#elif defined(UBL_MESH_INSET)
|
290
|
290
|
#error "UBL_MESH_INSET is now just MESH_INSET. Please update your configuration."
|
291
|
291
|
#elif defined(UBL_MESH_MIN_X) || defined(UBL_MESH_MIN_Y) || defined(UBL_MESH_MAX_X) || defined(UBL_MESH_MAX_Y)
|
|
@@ -294,14 +294,24 @@
|
294
|
294
|
#error "ABL_PROBE_PT_[123]_[XY] is no longer required. Please remove it from Configuration.h."
|
295
|
295
|
#elif defined(UBL_PROBE_PT_1_X) || defined(UBL_PROBE_PT_1_Y) || defined(UBL_PROBE_PT_2_X) || defined(UBL_PROBE_PT_2_Y) || defined(UBL_PROBE_PT_3_X) || defined(UBL_PROBE_PT_3_Y)
|
296
|
296
|
#error "UBL_PROBE_PT_[123]_[XY] is no longer required. Please remove it from Configuration.h."
|
|
297
|
+#elif defined(MIN_PROBE_EDGE)
|
|
298
|
+ #error "MIN_PROBE_EDGE is now called PROBING_MARGIN. Please update your configuration."
|
|
299
|
+#elif defined(MIN_PROBE_EDGE_LEFT)
|
|
300
|
+ #error "MIN_PROBE_EDGE_LEFT is now called PROBING_MARGIN_LEFT. Please update your configuration."
|
|
301
|
+#elif defined(MIN_PROBE_EDGE_RIGHT)
|
|
302
|
+ #error "MIN_PROBE_EDGE_RIGHT is now called PROBING_MARGIN_RIGHT. Please update your configuration."
|
|
303
|
+#elif defined(MIN_PROBE_EDGE_FRONT)
|
|
304
|
+ #error "MIN_PROBE_EDGE_FRONT is now called PROBING_MARGIN_FRONT. Please update your configuration."
|
|
305
|
+#elif defined(MIN_PROBE_EDGE_BACK)
|
|
306
|
+ #error "MIN_PROBE_EDGE_BACK is now called PROBING_MARGIN_BACK. Please update your configuration."
|
297
|
307
|
#elif defined(LEFT_PROBE_BED_POSITION)
|
298
|
|
- #error "LEFT_PROBE_BED_POSITION is obsolete. Set a margin with MIN_PROBE_EDGE or MIN_PROBE_EDGE_LEFT instead."
|
|
308
|
+ #error "LEFT_PROBE_BED_POSITION is obsolete. Set a margin with PROBING_MARGIN or PROBING_MARGIN_LEFT instead."
|
299
|
309
|
#elif defined(RIGHT_PROBE_BED_POSITION)
|
300
|
|
- #error "RIGHT_PROBE_BED_POSITION is obsolete. Set a margin with MIN_PROBE_EDGE or MIN_PROBE_EDGE_RIGHT instead."
|
|
310
|
+ #error "RIGHT_PROBE_BED_POSITION is obsolete. Set a margin with PROBING_MARGIN or PROBING_MARGIN_RIGHT instead."
|
301
|
311
|
#elif defined(FRONT_PROBE_BED_POSITION)
|
302
|
|
- #error "FRONT_PROBE_BED_POSITION is obsolete. Set a margin with MIN_PROBE_EDGE or MIN_PROBE_EDGE_FRONT instead."
|
|
312
|
+ #error "FRONT_PROBE_BED_POSITION is obsolete. Set a margin with PROBING_MARGIN or PROBING_MARGIN_FRONT instead."
|
303
|
313
|
#elif defined(BACK_PROBE_BED_POSITION)
|
304
|
|
- #error "BACK_PROBE_BED_POSITION is obsolete. Set a margin with MIN_PROBE_EDGE or MIN_PROBE_EDGE_BACK instead."
|
|
314
|
+ #error "BACK_PROBE_BED_POSITION is obsolete. Set a margin with PROBING_MARGIN or PROBING_MARGIN_BACK instead."
|
305
|
315
|
#elif defined(ENABLE_MESH_EDIT_GFX_OVERLAY)
|
306
|
316
|
#error "ENABLE_MESH_EDIT_GFX_OVERLAY is now MESH_EDIT_GFX_OVERLAY. Please update your configuration."
|
307
|
317
|
#elif defined(BABYSTEP_ZPROBE_GFX_REVERSE)
|
|
@@ -1263,12 +1273,20 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
1263
|
1273
|
#endif
|
1264
|
1274
|
|
1265
|
1275
|
#if DISABLED(NOZZLE_AS_PROBE)
|
1266
|
|
- static_assert(MIN_PROBE_EDGE >= 0, "MIN_PROBE_EDGE must be >= 0.");
|
1267
|
|
- static_assert(MIN_PROBE_EDGE_BACK >= 0, "MIN_PROBE_EDGE_BACK must be >= 0.");
|
1268
|
|
- static_assert(MIN_PROBE_EDGE_FRONT >= 0, "MIN_PROBE_EDGE_FRONT must be >= 0.");
|
1269
|
|
- static_assert(MIN_PROBE_EDGE_LEFT >= 0, "MIN_PROBE_EDGE_LEFT must be >= 0.");
|
1270
|
|
- static_assert(MIN_PROBE_EDGE_RIGHT >= 0, "MIN_PROBE_EDGE_RIGHT must be >= 0.");
|
1271
|
|
- #endif
|
|
1276
|
+ static_assert(PROBING_MARGIN >= 0, "PROBING_MARGIN must be >= 0.");
|
|
1277
|
+ static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
|
|
1278
|
+ static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
|
|
1279
|
+ static_assert(PROBING_MARGIN_LEFT >= 0, "PROBING_MARGIN_LEFT must be >= 0.");
|
|
1280
|
+ static_assert(PROBING_MARGIN_RIGHT >= 0, "PROBING_MARGIN_RIGHT must be >= 0.");
|
|
1281
|
+ #endif
|
|
1282
|
+
|
|
1283
|
+ #define _MARGIN(A) TERN(IS_SCARA, SCARA_PRINTABLE_RADIUS, TERN(DELTA, DELTA_PRINTABLE_RADIUS, A##_CENTER))
|
|
1284
|
+ static_assert(PROBING_MARGIN < _MARGIN(X), "PROBING_MARGIN is too large.");
|
|
1285
|
+ static_assert(PROBING_MARGIN_BACK < _MARGIN(Y), "PROBING_MARGIN_BACK is too large.");
|
|
1286
|
+ static_assert(PROBING_MARGIN_FRONT < _MARGIN(Y), "PROBING_MARGIN_FRONT is too large.");
|
|
1287
|
+ static_assert(PROBING_MARGIN_LEFT < _MARGIN(X), "PROBING_MARGIN_LEFT is too large.");
|
|
1288
|
+ static_assert(PROBING_MARGIN_RIGHT < _MARGIN(X), "PROBING_MARGIN_RIGHT is too large.");
|
|
1289
|
+ #undef _MARGIN
|
1272
|
1290
|
|
1273
|
1291
|
/**
|
1274
|
1292
|
* Make sure Z raise values are set
|