Fixed a regression in the timeout code.
The timestamp was not updated when calculating the remaining timeout.
This commit is contained in:
parent
dea1ae1518
commit
032f39cdd6
@ -463,6 +463,7 @@ serial_read (serial* device, void* data, unsigned int size)
|
|||||||
timeout = 0;
|
timeout = 0;
|
||||||
else
|
else
|
||||||
timeout = device->timeout - elapsed;
|
timeout = device->timeout - elapsed;
|
||||||
|
timestamp = now;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user