From 23f1cfb46f0a2beec3f522a56a5e8ce169a6d77e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 16 Mar 2017 21:49:39 -0500 Subject: [PATCH] Fix stuck CHDK pin as suggested in #6041 --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 1db714939..ffb2848b4 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -10329,7 +10329,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) { } #ifdef CHDK // Check if pin should be set to LOW after M240 set it to HIGH - if (chdkActive && PENDING(ms, chdkHigh + CHDK_DELAY)) { + if (chdkActive && ELAPSED(ms, chdkHigh + CHDK_DELAY)) { chdkActive = false; WRITE(CHDK, LOW); }