Drop DISABLE_M(IN|AX)_ENDSTOPS, replace with individual endstop flags

This commit is contained in:
Scott Lahteine
2016-03-02 02:00:34 -08:00
parent 071c742b8a
commit e5771346a4
21 changed files with 276 additions and 71 deletions

View File

@@ -419,6 +419,17 @@
#error TEMP_SENSOR_0 is required.
#endif
/**
* Endstops
*/
#if DISABLED(HAS_ENDSTOP_X_MIN) && DISABLED(HAS_ENDSTOP_X_MAX)
#error You must enable HAS_ENDSTOP_X_MIN or HAS_ENDSTOP_X_MAX
#elif DISABLED(HAS_ENDSTOP_Y_MIN) && DISABLED(HAS_ENDSTOP_Y_MAX)
#error You must enable HAS_ENDSTOP_Y_MIN or HAS_ENDSTOP_Y_MAX
#elif DISABLED(HAS_ENDSTOP_Z_MIN) && DISABLED(HAS_ENDSTOP_Z_MAX)
#error You must enable HAS_ENDSTOP_Z_MIN or HAS_ENDSTOP_Z_MAX
#endif
/**
* Warnings for old configurations
*/
@@ -456,6 +467,8 @@
#error Z_RAISE_BEFORE_HOMING is deprecated. Use MIN_Z_HEIGHT_FOR_HOMING instead.
#elif defined(FILAMENT_SENSOR)
#error FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead.
#elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
#error DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated - set USE_*_ENDSTOP flags instead
#endif
#endif //SANITYCHECK_H