Assert that XY probe offsets are integers

This commit is contained in:
Scott Lahteine 2018-07-12 22:48:07 -05:00
parent 12854f1909
commit bf7d0ba859

View File

@ -823,6 +823,9 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
#error "Z_PROBE_LOW_POINT must be less than or equal to 0." #error "Z_PROBE_LOW_POINT must be less than or equal to 0."
#endif #endif
static_assert(int(X_PROBE_OFFSET_FROM_EXTRUDER) == (X_PROBE_OFFSET_FROM_EXTRUDER), "X_PROBE_OFFSET_FROM_EXTRUDER must be an integer value.");
static_assert(int(Y_PROBE_OFFSET_FROM_EXTRUDER) == (Y_PROBE_OFFSET_FROM_EXTRUDER), "Y_PROBE_OFFSET_FROM_EXTRUDER must be an integer value.");
#else #else
/** /**