|
|
@ -283,9 +283,9 @@ |
|
|
|
#elif defined(NEOPIXEL_RGBW_LED) |
|
|
|
#error "NEOPIXEL_RGBW_LED is now NEOPIXEL_LED. Please update your configuration." |
|
|
|
#elif ENABLED(DELTA) && defined(DELTA_PROBEABLE_RADIUS) |
|
|
|
#error "Remove DELTA_PROBEABLE_RADIUS and use MIN_PROBE_EDGE to inset the probe area instead." |
|
|
|
#error "Remove DELTA_PROBEABLE_RADIUS and use PROBING_MARGIN to inset the probe area instead." |
|
|
|
#elif ENABLED(DELTA) && defined(DELTA_CALIBRATION_RADIUS) |
|
|
|
#error "Remove DELTA_CALIBRATION_RADIUS and use MIN_PROBE_EDGE to inset the probe area instead." |
|
|
|
#error "Remove DELTA_CALIBRATION_RADIUS and use PROBING_MARGIN to inset the probe area instead." |
|
|
|
#elif defined(UBL_MESH_INSET) |
|
|
|
#error "UBL_MESH_INSET is now just MESH_INSET. Please update your configuration." |
|
|
|
#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 @@ |
|
|
|
#error "ABL_PROBE_PT_[123]_[XY] is no longer required. Please remove it from Configuration.h." |
|
|
|
#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) |
|
|
|
#error "UBL_PROBE_PT_[123]_[XY] is no longer required. Please remove it from Configuration.h." |
|
|
|
#elif defined(MIN_PROBE_EDGE) |
|
|
|
#error "MIN_PROBE_EDGE is now called PROBING_MARGIN. Please update your configuration." |
|
|
|
#elif defined(MIN_PROBE_EDGE_LEFT) |
|
|
|
#error "MIN_PROBE_EDGE_LEFT is now called PROBING_MARGIN_LEFT. Please update your configuration." |
|
|
|
#elif defined(MIN_PROBE_EDGE_RIGHT) |
|
|
|
#error "MIN_PROBE_EDGE_RIGHT is now called PROBING_MARGIN_RIGHT. Please update your configuration." |
|
|
|
#elif defined(MIN_PROBE_EDGE_FRONT) |
|
|
|
#error "MIN_PROBE_EDGE_FRONT is now called PROBING_MARGIN_FRONT. Please update your configuration." |
|
|
|
#elif defined(MIN_PROBE_EDGE_BACK) |
|
|
|
#error "MIN_PROBE_EDGE_BACK is now called PROBING_MARGIN_BACK. Please update your configuration." |
|
|
|
#elif defined(LEFT_PROBE_BED_POSITION) |
|
|
|
#error "LEFT_PROBE_BED_POSITION is obsolete. Set a margin with MIN_PROBE_EDGE or MIN_PROBE_EDGE_LEFT instead." |
|
|
|
#error "LEFT_PROBE_BED_POSITION is obsolete. Set a margin with PROBING_MARGIN or PROBING_MARGIN_LEFT instead." |
|
|
|
#elif defined(RIGHT_PROBE_BED_POSITION) |
|
|
|
#error "RIGHT_PROBE_BED_POSITION is obsolete. Set a margin with MIN_PROBE_EDGE or MIN_PROBE_EDGE_RIGHT instead." |
|
|
|
#error "RIGHT_PROBE_BED_POSITION is obsolete. Set a margin with PROBING_MARGIN or PROBING_MARGIN_RIGHT instead." |
|
|
|
#elif defined(FRONT_PROBE_BED_POSITION) |
|
|
|
#error "FRONT_PROBE_BED_POSITION is obsolete. Set a margin with MIN_PROBE_EDGE or MIN_PROBE_EDGE_FRONT instead." |
|
|
|
#error "FRONT_PROBE_BED_POSITION is obsolete. Set a margin with PROBING_MARGIN or PROBING_MARGIN_FRONT instead." |
|
|
|
#elif defined(BACK_PROBE_BED_POSITION) |
|
|
|
#error "BACK_PROBE_BED_POSITION is obsolete. Set a margin with MIN_PROBE_EDGE or MIN_PROBE_EDGE_BACK instead." |
|
|
|
#error "BACK_PROBE_BED_POSITION is obsolete. Set a margin with PROBING_MARGIN or PROBING_MARGIN_BACK instead." |
|
|
|
#elif defined(ENABLE_MESH_EDIT_GFX_OVERLAY) |
|
|
|
#error "ENABLE_MESH_EDIT_GFX_OVERLAY is now MESH_EDIT_GFX_OVERLAY. Please update your configuration." |
|
|
|
#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 |
|
|
|
#endif |
|
|
|
|
|
|
|
#if DISABLED(NOZZLE_AS_PROBE) |
|
|
|
static_assert(MIN_PROBE_EDGE >= 0, "MIN_PROBE_EDGE must be >= 0."); |
|
|
|
static_assert(MIN_PROBE_EDGE_BACK >= 0, "MIN_PROBE_EDGE_BACK must be >= 0."); |
|
|
|
static_assert(MIN_PROBE_EDGE_FRONT >= 0, "MIN_PROBE_EDGE_FRONT must be >= 0."); |
|
|
|
static_assert(MIN_PROBE_EDGE_LEFT >= 0, "MIN_PROBE_EDGE_LEFT must be >= 0."); |
|
|
|
static_assert(MIN_PROBE_EDGE_RIGHT >= 0, "MIN_PROBE_EDGE_RIGHT must be >= 0."); |
|
|
|
#endif |
|
|
|
static_assert(PROBING_MARGIN >= 0, "PROBING_MARGIN must be >= 0."); |
|
|
|
static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0."); |
|
|
|
static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0."); |
|
|
|
static_assert(PROBING_MARGIN_LEFT >= 0, "PROBING_MARGIN_LEFT must be >= 0."); |
|
|
|
static_assert(PROBING_MARGIN_RIGHT >= 0, "PROBING_MARGIN_RIGHT must be >= 0."); |
|
|
|
#endif |
|
|
|
|
|
|
|
#define _MARGIN(A) TERN(IS_SCARA, SCARA_PRINTABLE_RADIUS, TERN(DELTA, DELTA_PRINTABLE_RADIUS, A##_CENTER)) |
|
|
|
static_assert(PROBING_MARGIN < _MARGIN(X), "PROBING_MARGIN is too large."); |
|
|
|
static_assert(PROBING_MARGIN_BACK < _MARGIN(Y), "PROBING_MARGIN_BACK is too large."); |
|
|
|
static_assert(PROBING_MARGIN_FRONT < _MARGIN(Y), "PROBING_MARGIN_FRONT is too large."); |
|
|
|
static_assert(PROBING_MARGIN_LEFT < _MARGIN(X), "PROBING_MARGIN_LEFT is too large."); |
|
|
|
static_assert(PROBING_MARGIN_RIGHT < _MARGIN(X), "PROBING_MARGIN_RIGHT is too large."); |
|
|
|
#undef _MARGIN |
|
|
|
|
|
|
|
/**
|
|
|
|
* Make sure Z raise values are set |
|
|
|