Browse Source

Fix bug in new endstop pullups handling

Scott Lahteine 8 years ago
parent
commit
c0e7257932
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      Marlin/Conditionals.h

+ 7
- 7
Marlin/Conditionals.h View File

278
    * Set ENDSTOPPULLUPS for unused endstop switches
278
    * Set ENDSTOPPULLUPS for unused endstop switches
279
    */
279
    */
280
   #if ENABLED(ENDSTOPPULLUPS)
280
   #if ENABLED(ENDSTOPPULLUPS)
281
-    #if DISABLED(USE_XMAX_PLUG)
281
+    #if ENABLED(USE_XMAX_PLUG)
282
       #define ENDSTOPPULLUP_XMAX
282
       #define ENDSTOPPULLUP_XMAX
283
     #endif
283
     #endif
284
-    #if DISABLED(USE_YMAX_PLUG)
284
+    #if ENABLED(USE_YMAX_PLUG)
285
       #define ENDSTOPPULLUP_YMAX
285
       #define ENDSTOPPULLUP_YMAX
286
     #endif
286
     #endif
287
-    #if DISABLED(USE_ZMAX_PLUG)
287
+    #if ENABLED(USE_ZMAX_PLUG)
288
       #define ENDSTOPPULLUP_ZMAX
288
       #define ENDSTOPPULLUP_ZMAX
289
     #endif
289
     #endif
290
-    #if DISABLED(USE_XMIN_PLUG)
290
+    #if ENABLED(USE_XMIN_PLUG)
291
       #define ENDSTOPPULLUP_XMIN
291
       #define ENDSTOPPULLUP_XMIN
292
     #endif
292
     #endif
293
-    #if DISABLED(USE_YMIN_PLUG)
293
+    #if ENABLED(USE_YMIN_PLUG)
294
       #define ENDSTOPPULLUP_YMIN
294
       #define ENDSTOPPULLUP_YMIN
295
     #endif
295
     #endif
296
-    #if DISABLED(USE_ZMIN_PLUG)
296
+    #if ENABLED(USE_ZMIN_PLUG)
297
       #define ENDSTOPPULLUP_ZMIN
297
       #define ENDSTOPPULLUP_ZMIN
298
     #endif
298
     #endif
299
-    #if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
299
+    #if ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
300
       #define ENDSTOPPULLUP_ZMIN_PROBE
300
       #define ENDSTOPPULLUP_ZMIN_PROBE
301
     #endif
301
     #endif
302
   #endif
302
   #endif

Loading…
Cancel
Save