Kaynağa Gözat

Squish down deprecated tests in sanity check

Scott Lahteine 9 yıl önce
ebeveyn
işleme
6af75f4b5d
1 değiştirilmiş dosya ile 18 ekleme ve 40 silme
  1. 18
    40
      Marlin/SanityCheck.h

+ 18
- 40
Marlin/SanityCheck.h Dosyayı Görüntüle

@@ -338,51 +338,29 @@
338 338
   /**
339 339
    * Warnings for old configurations
340 340
    */
341
-  #ifdef X_HOME_RETRACT_MM
342
-    #error [XYZ]_HOME_RETRACT_MM settings have been renamed [XYZ]_HOME_BUMP_MM.
343
-  #endif
344
-
345 341
   #if WATCH_TEMP_PERIOD > 500
346 342
     #error WATCH_TEMP_PERIOD now uses seconds instead of milliseconds.
347
-  #endif
348
-
349
-  #if DISABLED(THERMAL_PROTECTION_HOTENDS) && (defined(WATCH_TEMP_PERIOD) || defined(THERMAL_PROTECTION_PERIOD))
350
-    #error Thermal Runaway Protection for hotends must now be enabled with THERMAL_PROTECTION_HOTENDS.
351
-  #endif
352
-
353
-  #if DISABLED(THERMAL_PROTECTION_BED) && defined(THERMAL_PROTECTION_BED_PERIOD)
354
-    #error Thermal Runaway Protection for the bed must now be enabled with THERMAL_PROTECTION_BED.
355
-  #endif
356
-
357
-  #ifdef PROBE_SERVO_DEACTIVATION_DELAY
358
-    #error PROBE_SERVO_DEACTIVATION_DELAY has been replaced with DEACTIVATE_SERVOS_AFTER_MOVE and SERVO_DEACTIVATION_DELAY.
359
-  #endif
360
-
361
-  #if defined(COREXZ) && defined(Z_LATE_ENABLE)
343
+  #elif DISABLED(THERMAL_PROTECTION_HOTENDS) && (defined(WATCH_TEMP_PERIOD) || defined(THERMAL_PROTECTION_PERIOD))
344
+    #error Thermal Runaway Protection for hotends is now enabled with THERMAL_PROTECTION_HOTENDS.
345
+  #elif DISABLED(THERMAL_PROTECTION_BED) && defined(THERMAL_PROTECTION_BED_PERIOD)
346
+    #error Thermal Runaway Protection for the bed is now enabled with THERMAL_PROTECTION_BED.
347
+  #elif ENABLED(COREXZ) && ENABLED(Z_LATE_ENABLE)
362 348
     #error "Z_LATE_ENABLE can't be used with COREXZ."
363
-  #endif
364
-
365
-  #ifdef BEEPER
366
-    #error BEEPER has been replaced with BEEPER_PIN. Please update your pins definitions.
367
-  #endif
368
-
369
-  #ifdef SDCARDDETECT
349
+  #elif defined(X_HOME_RETRACT_MM)
350
+    #error [XYZ]_HOME_RETRACT_MM settings have been renamed [XYZ]_HOME_BUMP_MM.
351
+  #elif defined(PROBE_SERVO_DEACTIVATION_DELAY)
352
+    #error PROBE_SERVO_DEACTIVATION_DELAY has been replaced with DEACTIVATE_SERVOS_AFTER_MOVE and SERVO_DEACTIVATION_DELAY.
353
+  #elif defined(BEEPER)
354
+    #error BEEPER is now BEEPER_PIN. Please update your pins definitions.
355
+  #elif defined(SDCARDDETECT)
370 356
     #error SDCARDDETECT is now SD_DETECT_PIN. Please update your pins definitions.
371
-  #endif
372
-
373
-  #ifdef SDCARDDETECTINVERTED
357
+  #elif defined(SDCARDDETECTINVERTED)
374 358
     #error SDCARDDETECTINVERTED is now SD_DETECT_INVERTED. Please update your configuration.
375
-  #endif
376
-
377
-  #ifdef BTENABLED
378
-    #error BTENABLED has been replaced with BLUETOOTH. Please update your configuration.
379
-  #endif
380
-
381
-  #ifdef CUSTOM_MENDEL_NAME
382
-    #error CUSTOM_MENDEL_NAME deprecated - use CUSTOM_MACHINE_NAME instead
383
-  #endif
384
-
385
-  #ifdef HAS_AUTOMATIC_VERSIONING
359
+  #elif defined(BTENABLED)
360
+    #error BTENABLED is now BLUETOOTH. Please update your configuration.
361
+  #elif defined(CUSTOM_MENDEL_NAME)
362
+    #error CUSTOM_MENDEL_NAME is now CUSTOM_MACHINE_NAME. Please update your configuration.
363
+  #elif defined(HAS_AUTOMATIC_VERSIONING)
386 364
     #error HAS_AUTOMATIC_VERSIONING deprecated - use USE_AUTOMATIC_VERSIONING instead
387 365
   #endif
388 366
 

Loading…
İptal
Kaydet