Browse Source

DISABLE_[XYZ] compatibility check

DISABLE_[XYZ] is incompatible with HOME_AFTER_DEACTIVATE and Z_SAFE_HOMING
Dave Johnson 8 years ago
parent
commit
20f6676d63
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/SanityCheck.h

+ 9
- 0
Marlin/SanityCheck.h View File

@@ -753,6 +753,15 @@ static_assert(1 >= 0
753 753
 #endif // Z_SAFE_HOMING
754 754
 
755 755
 /**
756
+ * Make sure DISABLE_[XYZ] compatible with selected homing options
757
+ */
758
+#if ENABLED(DISABLE_X) || ENABLED(DISABLE_Y) || ENABLED(DISABLE_Z)
759
+  #if ENABLED(HOME_AFTER_DEACTIVATE) || ENABLED(Z_SAFE_HOMING)
760
+    #error "DISABLE_[XYZ] not compatible with HOME_AFTER_DEACTIVATE or Z_SAFE_HOMING."
761
+  #endif
762
+#endif // DISABLE_[XYZ]
763
+
764
+/**
756 765
  * Advance Extrusion
757 766
  */
758 767
 #if ENABLED(ADVANCE) && ENABLED(LIN_ADVANCE)

Loading…
Cancel
Save