Browse Source

Better RESTORE_LEVELING_AFTER_G28 sanity-check

As suggested by @GMagician
Scott Lahteine 6 years ago
parent
commit
e02fc4f1d6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/inc/SanityCheck.h

+ 2
- 2
Marlin/src/inc/SanityCheck.h View File

@@ -835,8 +835,8 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
835 835
     #error "AUTO_BED_LEVELING_UBL requires EEPROM_SETTINGS. Please update your configuration."
836 836
   #elif !WITHIN(GRID_MAX_POINTS_X, 3, 15) || !WITHIN(GRID_MAX_POINTS_Y, 3, 15)
837 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 840
   #endif
841 841
 
842 842
 #elif OLDSCHOOL_ABL

Loading…
Cancel
Save