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

@@ -275,17 +275,25 @@
#include "Arduino.h"
/**
* ENDSTOPPULLUPS
* Set ENDSTOPPULLUPS for unused endstop switches
*/
#if ENABLED(ENDSTOPPULLUPS)
#if DISABLED(DISABLE_MAX_ENDSTOPS)
#if DISABLED(USE_XMAX_PLUG)
#define ENDSTOPPULLUP_XMAX
#endif
#if DISABLED(USE_YMAX_PLUG)
#define ENDSTOPPULLUP_YMAX
#endif
#if DISABLED(USE_ZMAX_PLUG)
#define ENDSTOPPULLUP_ZMAX
#endif
#if DISABLED(DISABLE_MIN_ENDSTOPS)
#if DISABLED(USE_XMIN_PLUG)
#define ENDSTOPPULLUP_XMIN
#endif
#if DISABLED(USE_YMIN_PLUG)
#define ENDSTOPPULLUP_YMIN
#endif
#if DISABLED(USE_ZMIN_PLUG)
#define ENDSTOPPULLUP_ZMIN
#endif
#if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)