From 3a1225e4383b996836b6341f6a1749a3150c09fa Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 4 Feb 2018 18:44:10 -0600 Subject: [PATCH] Sanity check SENSORLESS_HOMING --- Marlin/src/inc/SanityCheck.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Marlin/src/inc/SanityCheck.h b/Marlin/src/inc/SanityCheck.h index 4901a3664f..5737438d02 100644 --- a/Marlin/src/inc/SanityCheck.h +++ b/Marlin/src/inc/SanityCheck.h @@ -241,6 +241,8 @@ #error "ANET_KEYPAD_LCD is now ZONESTAR_LCD. Please update your configuration." #elif defined(MEASURED_LOWER_LIMIT) || defined(MEASURED_UPPER_LIMIT) #error "MEASURED_(UPPER|LOWER)_LIMIT is now FILWIDTH_ERROR_MARGIN. Please update your configuration." +#elif defined(AUTOMATIC_CURRENT_CONTROL) + #error "AUTOMATIC_CURRENT_CONTROL is now MONITOR_DRIVER_STATUS. Please update your configuration." #endif /** @@ -1464,8 +1466,6 @@ static_assert(1 >= 0 #error "HAVE_TMC2130 requires at least one TMC2130 stepper to be set." #elif ENABLED(HYBRID_THRESHOLD) && DISABLED(STEALTHCHOP) #error "Enable STEALTHCHOP to use HYBRID_THRESHOLD." - #elif defined(AUTOMATIC_CURRENT_CONTROL) - #error "AUTOMATIC_CURRENT_CONTROL is now MONITOR_DRIVER_STATUS. Please update your configuration." #endif #if ENABLED(X_IS_TMC2130) && !PIN_EXISTS(X_CS) @@ -1492,12 +1492,15 @@ static_assert(1 >= 0 #error "E4_CS_PIN is required for E4_IS_TMC2130. Define E4_CS_PIN in Configuration_adv.h." #endif +#elif ENABLED(SENSORLESS_HOMING) + + #error "SENSORLESS_HOMING requires TMC2130 stepper drivers." + #endif /** * Make sure HAVE_TMC2208 is warranted */ - #if ENABLED(HAVE_TMC2208) && !( \ ENABLED( X_IS_TMC2208 ) \ || ENABLED( X2_IS_TMC2208 ) \