Browse Source

Added DISABLE_MAX_ENDSTOPS

Erik van der Zalm 13 years ago
parent
commit
2e749d60c3
2 changed files with 7 additions and 0 deletions
  1. 1
    0
      Marlin/Configuration.h
  2. 6
    0
      Marlin/pins.h

+ 1
- 0
Marlin/Configuration.h View File

118
 const bool X_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops. 
118
 const bool X_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops. 
119
 const bool Y_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops. 
119
 const bool Y_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops. 
120
 const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops. 
120
 const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops. 
121
+#define DISABLE_MAX_ENDSTOPS
121
 
122
 
122
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
123
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
123
 #define X_ENABLE_ON 0
124
 #define X_ENABLE_ON 0

+ 6
- 0
Marlin/pins.h View File

952
   #define _E2_PINS
952
   #define _E2_PINS
953
 #endif
953
 #endif
954
 
954
 
955
+#ifdef DISABLE_MAX_ENDSTOPS
956
+#define X_MAX_PIN          -1
957
+#define Y_MAX_PIN          -1
958
+#define Z_MAX_PIN          -1
959
+#endif
960
+
955
 #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, LED_PIN, PS_ON_PIN, \
961
 #define SENSITIVE_PINS {0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, LED_PIN, PS_ON_PIN, \
956
                         HEATER_BED_PIN, FAN_PIN,                  \
962
                         HEATER_BED_PIN, FAN_PIN,                  \
957
                         _E0_PINS _E1_PINS _E2_PINS             \
963
                         _E0_PINS _E1_PINS _E2_PINS             \

Loading…
Cancel
Save