1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Fix stuck CHDK pin as suggested in #6041

This commit is contained in:
Scott Lahteine 2017-03-16 21:49:39 -05:00 committed by GitHub
parent 0b22069e82
commit 23f1cfb46f

View File

@ -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);
}