Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#1034 from DerFlob/Marlin_v1
Browse files Browse the repository at this point in the history
Fix reseting CHDK pin to LOW
  • Loading branch information
ErikZalm committed Aug 28, 2014
2 parents c13a831 + 5908fd5 commit 8b52eff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3516,10 +3516,9 @@ void manage_inactivity()
}

#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;
if (millis()-chdkHigh < CHDK_DELAY) return;
WRITE(CHDK, LOW);
}
#endif
Expand Down

0 comments on commit 8b52eff

Please sign in to comment.