Explorar el Código

Fix Allen Key Probe pin test (#19520)

Siana Gearz hace 3 años
padre
commit
7415e4e66d
No account linked to committer's email address
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7
    1
      Marlin/src/module/probe.cpp

+ 7
- 1
Marlin/src/module/probe.cpp Ver fichero

@@ -270,7 +270,13 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
270 270
   #if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)
271 271
     do {
272 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 280
       #endif
275 281
 
276 282
       BUZZ(100, 659);

Loading…
Cancelar
Guardar