Browse Source

Some renaming of Z_PROBE to Z_MIN_PROBE (PR#91)

* Fix a couple of renames omission and macro expansion errors.
Christian Lefrançois 9 years ago
parent
commit
a7822e3ff7

+ 2
- 2
Marlin/Conditionals.h View File

239
       #define ENDSTOPPULLUP_ZMIN
239
       #define ENDSTOPPULLUP_ZMIN
240
     #endif
240
     #endif
241
     #if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
241
     #if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
242
-      #define ENDSTOPPULLUP_ZPROBE
242
+      #define ENDSTOPPULLUP_ZMIN_PROBE
243
     #endif
243
     #endif
244
   #endif
244
   #endif
245
 
245
 
447
   #define HAS_Z_MAX (PIN_EXISTS(Z_MAX))
447
   #define HAS_Z_MAX (PIN_EXISTS(Z_MAX))
448
   #define HAS_Z2_MIN (PIN_EXISTS(Z2_MIN))
448
   #define HAS_Z2_MIN (PIN_EXISTS(Z2_MIN))
449
   #define HAS_Z2_MAX (PIN_EXISTS(Z2_MAX))
449
   #define HAS_Z2_MAX (PIN_EXISTS(Z2_MAX))
450
-  #define HAS_Z_PROBE (PIN_EXISTS(Z_PROBE))
450
+  #define HAS_Z_PROBE (PIN_EXISTS(Z_MIN_PROBE))
451
   #define HAS_SOLENOID_1 (PIN_EXISTS(SOL1))
451
   #define HAS_SOLENOID_1 (PIN_EXISTS(SOL1))
452
   #define HAS_SOLENOID_2 (PIN_EXISTS(SOL2))
452
   #define HAS_SOLENOID_2 (PIN_EXISTS(SOL2))
453
   #define HAS_SOLENOID_3 (PIN_EXISTS(SOL3))
453
   #define HAS_SOLENOID_3 (PIN_EXISTS(SOL3))

+ 1
- 1
Marlin/Marlin.h View File

196
  */
196
  */
197
 enum AxisEnum {X_AXIS=0, A_AXIS=0, Y_AXIS=1, B_AXIS=1, Z_AXIS=2, C_AXIS=2, E_AXIS=3, X_HEAD=4, Y_HEAD=5, Z_HEAD=5};
197
 enum AxisEnum {X_AXIS=0, A_AXIS=0, Y_AXIS=1, B_AXIS=1, Z_AXIS=2, C_AXIS=2, E_AXIS=3, X_HEAD=4, Y_HEAD=5, Z_HEAD=5};
198
 
198
 
199
-enum EndstopEnum {X_MIN=0, Y_MIN=1, Z_MIN=2, Z_PROBE=3, X_MAX=4, Y_MAX=5, Z_MAX=6, Z2_MIN=7, Z2_MAX=8};
199
+enum EndstopEnum {X_MIN=0, Y_MIN=1, Z_MIN=2, Z_MIN_PROBE=3, X_MAX=4, Y_MAX=5, Z_MAX=6, Z2_MIN=7, Z2_MAX=8};
200
 
200
 
201
 void enable_all_steppers();
201
 void enable_all_steppers();
202
 void disable_all_steppers();
202
 void disable_all_steppers();

+ 4
- 4
Marlin/SanityCheck.h View File

132
     /**
132
     /**
133
      * Require a Z Min pin
133
      * Require a Z Min pin
134
      */
134
      */
135
-    #if Z_MIN_PIN == -1
136
-      #if Z_MIN_PROBE_PIN == -1 || (DISABLED(Z_MIN_PROBE_ENDSTOP) || ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)) // It's possible for someone to set a pin for the Z Probe, but not enable it.
135
+    #if !PIN_EXISTS(Z_MIN)
136
+      #if !PIN_EXISTS(Z_MIN_PROBE) || (DISABLED(Z_MIN_PROBE_ENDSTOP) || ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)) // It's possible for someone to set a pin for the Z Probe, but not enable it.
137
         #if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
137
         #if ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST)
138
           #error You must have a Z_MIN or Z_PROBE endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST.
138
           #error You must have a Z_MIN or Z_PROBE endstop to enable Z_MIN_PROBE_REPEATABILITY_TEST.
139
         #else
139
         #else
146
      * Require a Z Probe Pin if Z_MIN_PROBE_ENDSTOP is enabled.
146
      * Require a Z Probe Pin if Z_MIN_PROBE_ENDSTOP is enabled.
147
      */
147
      */
148
     #if ENABLED(Z_MIN_PROBE_ENDSTOP)
148
     #if ENABLED(Z_MIN_PROBE_ENDSTOP)
149
-      #if !PIN_EXISTS(Z_PROBE)
149
+      #ifndef Z_MIN_PROBE_PIN
150
         #error You must have a Z_MIN_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_MIN_PROBE_ENDSTOP.
150
         #error You must have a Z_MIN_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_MIN_PROBE_ENDSTOP.
151
       #endif
151
       #endif
152
-      #if Z_MIN_PROBE_PIN == -1
152
+      #if !PIN_EXISTS(Z_MIN_PROBE)
153
         #error You must set Z_MIN_PROBE_PIN to a valid pin if you enable Z_MIN_PROBE_ENDSTOP.
153
         #error You must set Z_MIN_PROBE_PIN to a valid pin if you enable Z_MIN_PROBE_ENDSTOP.
154
       #endif
154
       #endif
155
 // Forcing Servo definitions can break some hall effect sensor setups. Leaving these here for further comment.
155
 // Forcing Servo definitions can break some hall effect sensor setups. Leaving these here for further comment.

+ 1
- 1
Marlin/configurator/config/Configuration.h View File

327
   // #define ENDSTOPPULLUP_XMIN
327
   // #define ENDSTOPPULLUP_XMIN
328
   // #define ENDSTOPPULLUP_YMIN
328
   // #define ENDSTOPPULLUP_YMIN
329
   // #define ENDSTOPPULLUP_ZMIN
329
   // #define ENDSTOPPULLUP_ZMIN
330
-  // #define ENDSTOPPULLUP_ZPROBE
330
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
331
 #endif
331
 #endif
332
 
332
 
333
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
333
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/Felix/Configuration.h View File

309
   // #define ENDSTOPPULLUP_XMIN
309
   // #define ENDSTOPPULLUP_XMIN
310
   // #define ENDSTOPPULLUP_YMIN
310
   // #define ENDSTOPPULLUP_YMIN
311
   // #define ENDSTOPPULLUP_ZMIN
311
   // #define ENDSTOPPULLUP_ZMIN
312
-  // #define ENDSTOPPULLUP_ZPROBE
312
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
313
 #endif
313
 #endif
314
 
314
 
315
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
315
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 0
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

294
   // #define ENDSTOPPULLUP_XMIN
294
   // #define ENDSTOPPULLUP_XMIN
295
   // #define ENDSTOPPULLUP_YMIN
295
   // #define ENDSTOPPULLUP_YMIN
296
   // #define ENDSTOPPULLUP_ZMIN
296
   // #define ENDSTOPPULLUP_ZMIN
297
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
297
 #endif
298
 #endif
298
 
299
 
299
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
300
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/Hephestos/Configuration.h View File

319
   // #define ENDSTOPPULLUP_XMIN
319
   // #define ENDSTOPPULLUP_XMIN
320
   // #define ENDSTOPPULLUP_YMIN
320
   // #define ENDSTOPPULLUP_YMIN
321
   // #define ENDSTOPPULLUP_ZMIN
321
   // #define ENDSTOPPULLUP_ZMIN
322
-  // #define ENDSTOPPULLUP_ZPROBE
322
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
323
 #endif
323
 #endif
324
 
324
 
325
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
325
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/K8200/Configuration.h View File

315
   #define ENDSTOPPULLUP_XMIN
315
   #define ENDSTOPPULLUP_XMIN
316
   #define ENDSTOPPULLUP_YMIN
316
   #define ENDSTOPPULLUP_YMIN
317
   #define ENDSTOPPULLUP_ZMIN
317
   #define ENDSTOPPULLUP_ZMIN
318
-  // #define ENDSTOPPULLUP_ZPROBE
318
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
319
 #endif
319
 #endif
320
 
320
 
321
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
321
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

327
   // #define ENDSTOPPULLUP_XMIN
327
   // #define ENDSTOPPULLUP_XMIN
328
   // #define ENDSTOPPULLUP_YMIN
328
   // #define ENDSTOPPULLUP_YMIN
329
   // #define ENDSTOPPULLUP_ZMIN
329
   // #define ENDSTOPPULLUP_ZMIN
330
-  // #define ENDSTOPPULLUP_ZPROBE
330
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
331
 #endif
331
 #endif
332
 
332
 
333
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
333
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/RigidBot/Configuration.h View File

313
   // #define ENDSTOPPULLUP_XMIN
313
   // #define ENDSTOPPULLUP_XMIN
314
   // #define ENDSTOPPULLUP_YMIN
314
   // #define ENDSTOPPULLUP_YMIN
315
   // #define ENDSTOPPULLUP_ZMIN
315
   // #define ENDSTOPPULLUP_ZMIN
316
-  // #define ENDSTOPPULLUP_ZPROBE
316
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
317
 #endif
317
 #endif
318
 
318
 
319
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
319
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/SCARA/Configuration.h View File

335
    #define ENDSTOPPULLUP_XMIN  // open pin, inverted
335
    #define ENDSTOPPULLUP_XMIN  // open pin, inverted
336
    #define ENDSTOPPULLUP_YMIN  // open pin, inverted
336
    #define ENDSTOPPULLUP_YMIN  // open pin, inverted
337
   // #define ENDSTOPPULLUP_ZMIN
337
   // #define ENDSTOPPULLUP_ZMIN
338
-  // #define ENDSTOPPULLUP_ZPROBE
338
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
339
 #endif
339
 #endif
340
 
340
 
341
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
341
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/WITBOX/Configuration.h View File

319
   // #define ENDSTOPPULLUP_XMIN
319
   // #define ENDSTOPPULLUP_XMIN
320
   // #define ENDSTOPPULLUP_YMIN
320
   // #define ENDSTOPPULLUP_YMIN
321
   // #define ENDSTOPPULLUP_ZMIN
321
   // #define ENDSTOPPULLUP_ZMIN
322
-  // #define ENDSTOPPULLUP_ZPROBE
322
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
323
 #endif
323
 #endif
324
 
324
 
325
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
325
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

327
   // #define ENDSTOPPULLUP_XMIN
327
   // #define ENDSTOPPULLUP_XMIN
328
   // #define ENDSTOPPULLUP_YMIN
328
   // #define ENDSTOPPULLUP_YMIN
329
   // #define ENDSTOPPULLUP_ZMIN
329
   // #define ENDSTOPPULLUP_ZMIN
330
-  // #define ENDSTOPPULLUP_ZPROBE
330
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
331
 #endif
331
 #endif
332
 
332
 
333
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
333
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

362
   // #define ENDSTOPPULLUP_XMIN
362
   // #define ENDSTOPPULLUP_XMIN
363
   // #define ENDSTOPPULLUP_YMIN
363
   // #define ENDSTOPPULLUP_YMIN
364
   // #define ENDSTOPPULLUP_ZMIN
364
   // #define ENDSTOPPULLUP_ZMIN
365
-  // #define ENDSTOPPULLUP_ZPROBE
365
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
366
 #endif
366
 #endif
367
 
367
 
368
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
368
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/delta/generic/Configuration.h View File

362
   // #define ENDSTOPPULLUP_XMIN
362
   // #define ENDSTOPPULLUP_XMIN
363
   // #define ENDSTOPPULLUP_YMIN
363
   // #define ENDSTOPPULLUP_YMIN
364
   // #define ENDSTOPPULLUP_ZMIN
364
   // #define ENDSTOPPULLUP_ZMIN
365
-  // #define ENDSTOPPULLUP_ZPROBE
365
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
366
 #endif
366
 #endif
367
 
367
 
368
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
368
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

362
   // #define ENDSTOPPULLUP_XMIN
362
   // #define ENDSTOPPULLUP_XMIN
363
   // #define ENDSTOPPULLUP_YMIN
363
   // #define ENDSTOPPULLUP_YMIN
364
   // #define ENDSTOPPULLUP_ZMIN
364
   // #define ENDSTOPPULLUP_ZMIN
365
-  // #define ENDSTOPPULLUP_ZPROBE
365
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
366
 #endif
366
 #endif
367
 
367
 
368
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
368
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

349
   // #define ENDSTOPPULLUP_XMIN
349
   // #define ENDSTOPPULLUP_XMIN
350
   // #define ENDSTOPPULLUP_YMIN
350
   // #define ENDSTOPPULLUP_YMIN
351
   // #define ENDSTOPPULLUP_ZMIN
351
   // #define ENDSTOPPULLUP_ZMIN
352
-  // #define ENDSTOPPULLUP_ZPROBE
352
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
353
 #endif
353
 #endif
354
 
354
 
355
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
355
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/makibox/Configuration.h View File

330
   // #define ENDSTOPPULLUP_XMIN
330
   // #define ENDSTOPPULLUP_XMIN
331
   // #define ENDSTOPPULLUP_YMIN
331
   // #define ENDSTOPPULLUP_YMIN
332
   // #define ENDSTOPPULLUP_ZMIN
332
   // #define ENDSTOPPULLUP_ZMIN
333
-  // #define ENDSTOPPULLUP_ZPROBE
333
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
334
 #endif
334
 #endif
335
 
335
 
336
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
336
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

317
   // #define ENDSTOPPULLUP_XMIN
317
   // #define ENDSTOPPULLUP_XMIN
318
   // #define ENDSTOPPULLUP_YMIN
318
   // #define ENDSTOPPULLUP_YMIN
319
   // #define ENDSTOPPULLUP_ZMIN
319
   // #define ENDSTOPPULLUP_ZMIN
320
-  // #define ENDSTOPPULLUP_ZPROBE
320
+  // #define ENDSTOPPULLUP_ZMIN_PROBE
321
 #endif
321
 #endif
322
 
322
 
323
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
323
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).

+ 1
- 0
Marlin/pins_AZTEEG_X3_PRO.h View File

37
  #if ENABLED(Z_MIN_PROBE_ENDSTOP)
37
  #if ENABLED(Z_MIN_PROBE_ENDSTOP)
38
 //#undef Z_MIN_PIN
38
 //#undef Z_MIN_PIN
39
 //#define Z_MIN_PIN        15
39
 //#define Z_MIN_PIN        15
40
+  // Define a pin to use as the signal pin on Arduino for the Z probe endstop.
40
   #define Z_MIN_PROBE_PIN  19
41
   #define Z_MIN_PROBE_PIN  19
41
  #endif
42
  #endif
42
 //
43
 //

+ 6
- 0
Marlin/pins_RUMBA.h View File

27
 #define Z_ENABLE_PIN       62
27
 #define Z_ENABLE_PIN       62
28
 #define Z_MIN_PIN          33
28
 #define Z_MIN_PIN          33
29
 #define Z_MAX_PIN          32
29
 #define Z_MAX_PIN          32
30
+#define Z_MIN_PROBE_PIN    -1
31
+
32
+#if ENABLED(Z_MIN_PROBE_ENDSTOP)
33
+  // Define a pin to use as the signal pin on Arduino for the Z probe endstop.
34
+  #define Z_MIN_PROBE_PIN  33
35
+#endif
30
 
36
 
31
 #define E0_STEP_PIN        23
37
 #define E0_STEP_PIN        23
32
 #define E0_DIR_PIN         22
38
 #define E0_DIR_PIN         22

+ 8
- 8
Marlin/stepper.cpp View File

74
 
74
 
75
 volatile long endstops_trigsteps[3] = { 0 };
75
 volatile long endstops_trigsteps[3] = { 0 };
76
 volatile long endstops_stepsTotal, endstops_stepsDone;
76
 volatile long endstops_stepsTotal, endstops_stepsDone;
77
-static volatile char endstop_hit_bits = 0; // use X_MIN, Y_MIN, Z_MIN and Z_PROBE as BIT value
77
+static volatile char endstop_hit_bits = 0; // use X_MIN, Y_MIN, Z_MIN and Z_MIN_PROBE as BIT value
78
 
78
 
79
 #if DISABLED(Z_DUAL_ENDSTOPS)
79
 #if DISABLED(Z_DUAL_ENDSTOPS)
80
   static byte
80
   static byte
81
 #else
81
 #else
82
   static uint16_t
82
   static uint16_t
83
 #endif
83
 #endif
84
-  old_endstop_bits = 0; // use X_MIN, X_MAX... Z_MAX, Z_PROBE, Z2_MIN, Z2_MAX
84
+  old_endstop_bits = 0; // use X_MIN, X_MAX... Z_MAX, Z_MIN_PROBE, Z2_MIN, Z2_MAX
85
 
85
 
86
 #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
86
 #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
87
   bool abort_on_endstop_hit = false;
87
   bool abort_on_endstop_hit = false;
264
       LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Z");
264
       LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Z");
265
     }
265
     }
266
     #if ENABLED(Z_MIN_PROBE_ENDSTOP)
266
     #if ENABLED(Z_MIN_PROBE_ENDSTOP)
267
-      if (endstop_hit_bits & BIT(Z_PROBE)) {
268
-        SERIAL_ECHOPAIR(" Z_PROBE:", (float)endstops_trigsteps[Z_AXIS] / axis_steps_per_unit[Z_AXIS]);
267
+      if (endstop_hit_bits & BIT(Z_MIN_PROBE)) {
268
+        SERIAL_ECHOPAIR(" Z_MIN_PROBE:", (float)endstops_trigsteps[Z_AXIS] / axis_steps_per_unit[Z_AXIS]);
269
         LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "ZP");
269
         LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "ZP");
270
       }
270
       }
271
     #endif
271
     #endif
412
         #endif // Z_MIN_PIN
412
         #endif // Z_MIN_PIN
413
 
413
 
414
         #if ENABLED(Z_MIN_PROBE_ENDSTOP)
414
         #if ENABLED(Z_MIN_PROBE_ENDSTOP)
415
-          UPDATE_ENDSTOP(Z, PROBE);
415
+          UPDATE_ENDSTOP(Z, MIN_PROBE);
416
 
416
 
417
-          if (TEST_ENDSTOP(Z_PROBE))
417
+          if (TEST_ENDSTOP(Z_MIN_PROBE))
418
           {
418
           {
419
             endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
419
             endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
420
-            endstop_hit_bits |= BIT(Z_PROBE);
420
+            endstop_hit_bits |= BIT(Z_MIN_PROBE);
421
           }
421
           }
422
         #endif
422
         #endif
423
       }
423
       }
973
 
973
 
974
   #if HAS_Z_PROBE && ENABLED(Z_MIN_PROBE_ENDSTOP) // Check for Z_MIN_PROBE_ENDSTOP so we don't pull a pin high unless it's to be used.
974
   #if HAS_Z_PROBE && ENABLED(Z_MIN_PROBE_ENDSTOP) // Check for Z_MIN_PROBE_ENDSTOP so we don't pull a pin high unless it's to be used.
975
     SET_INPUT(Z_MIN_PROBE_PIN);
975
     SET_INPUT(Z_MIN_PROBE_PIN);
976
-    #if ENABLED(ENDSTOPPULLUP_ZPROBE)
976
+    #if ENABLED(ENDSTOPPULLUP_ZMIN_PROBE)
977
       WRITE(Z_MIN_PROBE_PIN,HIGH);
977
       WRITE(Z_MIN_PROBE_PIN,HIGH);
978
     #endif
978
     #endif
979
   #endif
979
   #endif

Loading…
Cancel
Save