Merge pull request #1034 from DerFlob/Marlin_v1
Fix reseting CHDK pin to LOW
This commit is contained in:
commit
8b52eff2c1
|
@ -3516,10 +3516,9 @@ void manage_inactivity()
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CHDK //Check if pin should be set to LOW after M240 set it to HIGH
|
#ifdef CHDK //Check if pin should be set to LOW after M240 set it to HIGH
|
||||||
if (chdkActive)
|
if (chdkActive && (millis() - chdkHigh > CHDK_DELAY))
|
||||||
{
|
{
|
||||||
chdkActive = false;
|
chdkActive = false;
|
||||||
if (millis()-chdkHigh < CHDK_DELAY) return;
|
|
||||||
WRITE(CHDK, LOW);
|
WRITE(CHDK, LOW);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue