Fixed a regression in the timeout code.

The timestamp was not updated when calculating the remaining timeout.
This commit is contained in:
Jef Driesen 2008-02-28 09:56:18 +00:00
parent dea1ae1518
commit 032f39cdd6

View File

@ -463,6 +463,7 @@ serial_read (serial* device, void* data, unsigned int size)
timeout = 0;
else
timeout = device->timeout - elapsed;
timestamp = now;
}
}