Browse Source

Merge pull request #7232 from fiveangle/disable_xyz_compatibility_check

DISABLE_[XYZ] compatibility check
Scott Lahteine 7 years ago
parent
commit
b8066fb36f
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