From 032f39cdd6c93b862f309b4efb04e49dbb743ac1 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 28 Feb 2008 09:56:18 +0000 Subject: [PATCH] Fixed a regression in the timeout code. The timestamp was not updated when calculating the remaining timeout. --- serial_posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/serial_posix.c b/serial_posix.c index 34ac6fc..a49f6c8 100644 --- a/serial_posix.c +++ b/serial_posix.c @@ -463,6 +463,7 @@ serial_read (serial* device, void* data, unsigned int size) timeout = 0; else timeout = device->timeout - elapsed; + timestamp = now; } }