Open HamiltonChris opened 8 years ago
On lines 194 and 245 there is a check
if (current_time - start_time == TIMEOUT)
should be
if(current_time - start_time <= TIMEOUT)
Since getting the exact time is unlikely to trigger this if statement.
should be:
if(current_time - start_time >= TIMEOUT)
look at the while loop immediately before this
oops my bad but you know what I meant
On lines 194 and 245 there is a check
should be
Since getting the exact time is unlikely to trigger this if statement.