From 0ef5d667b64f6f409f2aff628c2973833066f473 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 26 May 2019 11:23:25 +1200 Subject: [PATCH] Fixed M43 parameter bug (#14099) --- Marlin/src/gcode/config/M43.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/config/M43.cpp b/Marlin/src/gcode/config/M43.cpp index d383e3465e..c46e7005be 100644 --- a/Marlin/src/gcode/config/M43.cpp +++ b/Marlin/src/gcode/config/M43.cpp @@ -218,7 +218,7 @@ inline void servo_probe_test() { if (deploy_state != READ(PROBE_TEST_PIN)) { // probe triggered for (probe_counter = 0; probe_counter < 15 && deploy_state != READ(PROBE_TEST_PIN); ++probe_counter) safe_delay(2); - if (probe_counter = 15) + if (probe_counter == 15) SERIAL_ECHOLNPGM(". Pulse width: 30ms or more"); else SERIAL_ECHOLNPAIR(". Pulse width (+/- 4ms): ", probe_counter * 2);