Browse Source

Sanity check SENSORLESS_HOMING

Scott Lahteine 7 years ago
parent
commit
3a1225e438
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      Marlin/src/inc/SanityCheck.h

+ 6
- 3
Marlin/src/inc/SanityCheck.h View File

@@ -241,6 +241,8 @@
241 241
   #error "ANET_KEYPAD_LCD is now ZONESTAR_LCD. Please update your configuration."
242 242
 #elif defined(MEASURED_LOWER_LIMIT) || defined(MEASURED_UPPER_LIMIT)
243 243
   #error "MEASURED_(UPPER|LOWER)_LIMIT is now FILWIDTH_ERROR_MARGIN. Please update your configuration."
244
+#elif defined(AUTOMATIC_CURRENT_CONTROL)
245
+  #error "AUTOMATIC_CURRENT_CONTROL is now MONITOR_DRIVER_STATUS. Please update your configuration."
244 246
 #endif
245 247
 
246 248
 /**
@@ -1464,8 +1466,6 @@ static_assert(1 >= 0
1464 1466
     #error "HAVE_TMC2130 requires at least one TMC2130 stepper to be set."
1465 1467
   #elif ENABLED(HYBRID_THRESHOLD) && DISABLED(STEALTHCHOP)
1466 1468
     #error "Enable STEALTHCHOP to use HYBRID_THRESHOLD."
1467
-  #elif defined(AUTOMATIC_CURRENT_CONTROL)
1468
-    #error "AUTOMATIC_CURRENT_CONTROL is now MONITOR_DRIVER_STATUS. Please update your configuration."
1469 1469
   #endif
1470 1470
 
1471 1471
   #if ENABLED(X_IS_TMC2130) && !PIN_EXISTS(X_CS)
@@ -1492,12 +1492,15 @@ static_assert(1 >= 0
1492 1492
     #error "E4_CS_PIN is required for E4_IS_TMC2130. Define E4_CS_PIN in Configuration_adv.h."
1493 1493
   #endif
1494 1494
 
1495
+#elif ENABLED(SENSORLESS_HOMING)
1496
+
1497
+  #error "SENSORLESS_HOMING requires TMC2130 stepper drivers."
1498
+
1495 1499
 #endif
1496 1500
 
1497 1501
 /**
1498 1502
  * Make sure HAVE_TMC2208 is warranted
1499 1503
  */
1500
-
1501 1504
 #if ENABLED(HAVE_TMC2208) && !( \
1502 1505
        ENABLED(  X_IS_TMC2208 ) \
1503 1506
     || ENABLED( X2_IS_TMC2208 ) \

Loading…
Cancel
Save