We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b14feb1 commit a258a34Copy full SHA for a258a34
RFIDuino/RFIDuino.cpp
@@ -49,13 +49,13 @@ bool RFIDuino::decodeTag(unsigned char *buf)
49
while(0==digitalRead(DEMOD_OUT)) //watch for DEMOD_OUT to go low
50
{
51
52
- if(timeCount==TIMEOUT) //if we pass TIMEOUT milliseconds, break out of the loop
+ if(timeCount>=TIMEOUT) //if we pass TIMEOUT milliseconds, break out of the loop
53
break;
54
else
55
timeCount++;
56
}
57
58
- if (timeCount==600)
+ if (timeCount>=600)
59
return false;
60
61
timeCount=0;
0 commit comments