Selaa lähdekoodia

Better RESTORE_LEVELING_AFTER_G28 sanity-check

As suggested by @GMagician
Scott Lahteine 7 vuotta sitten
vanhempi
commit
e02fc4f1d6
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      Marlin/src/inc/SanityCheck.h

+ 2
- 2
Marlin/src/inc/SanityCheck.h Näytä tiedosto

835
     #error "AUTO_BED_LEVELING_UBL requires EEPROM_SETTINGS. Please update your configuration."
835
     #error "AUTO_BED_LEVELING_UBL requires EEPROM_SETTINGS. Please update your configuration."
836
   #elif !WITHIN(GRID_MAX_POINTS_X, 3, 15) || !WITHIN(GRID_MAX_POINTS_Y, 3, 15)
836
   #elif !WITHIN(GRID_MAX_POINTS_X, 3, 15) || !WITHIN(GRID_MAX_POINTS_Y, 3, 15)
837
     #error "GRID_MAX_POINTS_[XY] must be a whole number between 3 and 15."
837
     #error "GRID_MAX_POINTS_[XY] must be a whole number between 3 and 15."
838
-  #elif DISABLED(RESTORE_LEVELING_AFTER_G28)
839
-    #error "AUTO_BED_LEVELING_UBL (<=1.1.8) always has RESTORE_LEVELING_AFTER_G28 enabled. To keep this behavior, #define RESTORE_LEVELING_AFTER_G28. To keep it disabled comment out this line in SanityCheck.h."
838
+  #elif !defined(RESTORE_LEVELING_AFTER_G28)
839
+    #error "AUTO_BED_LEVELING_UBL used to enable RESTORE_LEVELING_AFTER_G28. To keep this behavior enable RESTORE_LEVELING_AFTER_G28. Otherwise define it as 'false'."
840
   #endif
840
   #endif
841
 
841
 
842
 #elif OLDSCHOOL_ABL
842
 #elif OLDSCHOOL_ABL

Loading…
Peruuta
Tallenna