Merge pull request #5 from qiwenmin/master
Fix the delay condition bug when overflow
This commit is contained in:
commit
5ce94e8e49
@ -275,7 +275,7 @@ unsigned long delayBeforeTime = 0;
|
||||
byte delay_background(unsigned delayTime, byte fromType){ //fromType : 4 autoCWKey -> Check Paddle
|
||||
delayBeforeTime = millis();
|
||||
|
||||
while (millis() <= delayBeforeTime + delayTime) {
|
||||
while (millis() - delayBeforeTime <= delayTime) {
|
||||
|
||||
if (fromType == 4)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user