diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h index 73d0fc57b2..19a78c4bf9 100644 --- a/Marlin/SanityCheck.h +++ b/Marlin/SanityCheck.h @@ -480,6 +480,8 @@ static_assert(1 >= 0 #error "You probably want to use Max Endstops for DELTA!" #elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_DELTA #error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL." + #elif ENABLED(DELTA_AUTO_CALIBRATION) && !HAS_BED_PROBE + #error "DELTA_AUTO_CALIBRATION requires a probe: FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or Z Servo." #elif ABL_GRID #if (GRID_MAX_POINTS_X & 1) == 0 || (GRID_MAX_POINTS_Y & 1) == 0 #error "DELTA requires GRID_MAX_POINTS_X and GRID_MAX_POINTS_Y to be odd numbers." diff --git a/Marlin/gcode.h b/Marlin/gcode.h index ac3268d7d4..aa51a57b01 100644 --- a/Marlin/gcode.h +++ b/Marlin/gcode.h @@ -144,10 +144,6 @@ public: #define SEEN_TEST(L) TEST(codebits[LETTER_IND(L)], LETTER_BIT(L)) - // Seen any axis parameter - // Optimized by moving 'X' up to index 24 - FORCE_INLINE bool seen_axis() { return codebits[3] || SEEN_TEST('E'); } - #else // !FASTER_GCODE_PARSER // Code is found in the string. If not found, value_ptr is unchanged. @@ -164,13 +160,13 @@ public: #define SEEN_TEST(L) !!strchr(command_args, L) - // Seen any axis parameter - static bool seen_axis() { - return SEEN_TEST('X') || SEEN_TEST('Y') || SEEN_TEST('Z') || SEEN_TEST('E'); - } - #endif // !FASTER_GCODE_PARSER + // Seen any axis parameter + static bool seen_axis() { + return SEEN_TEST('X') || SEEN_TEST('Y') || SEEN_TEST('Z') || SEEN_TEST('E'); + } + // Populate all fields by parsing a single line of GCode // This uses 54 bytes of SRAM to speed up seen/value static void parse(char * p);