Browse Source

Fix Allen Key Probe pin test (#19520)

Siana Gearz 3 years ago
parent
commit
7415e4e66d
No account linked to committer's email address
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      Marlin/src/module/probe.cpp

+ 7
- 1
Marlin/src/module/probe.cpp View File

270
   #if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)
270
   #if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)
271
     do {
271
     do {
272
       #if ENABLED(PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED)
272
       #if ENABLED(PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED)
273
-        if (deploy == (READ(Z_MIN_PROBE_PIN) == Z_MIN_PROBE_ENDSTOP_INVERTING)) break;
273
+        if (deploy == (
274
+          #if HAS_CUSTOM_PROBE_PIN
275
+            READ(Z_MIN_PROBE_PIN) == Z_MIN_PROBE_ENDSTOP_INVERTING
276
+          #else
277
+            READ(Z_MIN_PIN) == Z_MIN_ENDSTOP_INVERTING
278
+          #endif
279
+        )) break;
274
       #endif
280
       #endif
275
 
281
 
276
       BUZZ(100, 659);
282
       BUZZ(100, 659);

Loading…
Cancel
Save