double the timeout to make errors less likely

r3093 | dcl | 2011-04-05 17:37:51 +1000 (Tue, 05 Apr 2011) | 1 line
This commit is contained in:
Douglas Clowes
2011-04-05 17:37:51 +10:00
parent 074344f63d
commit 665adbf4a6

View File

@@ -133,9 +133,9 @@ int NewportReading(Ascon *a) {
else
timeout = 1.0;
} else if (text[len - 1] == '\r') {
timeout = 0.1;
timeout = 0.2;
} else {
timeout = 0.1;
timeout = 0.2;
}
if ((now - a->start) > timeout) {
if (len < 5) {