From 517bb8d5ce9f54708490d675e4387619513263c5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 9 Mar 2011 17:38:53 -0500 Subject: Make the Qt implementation honor timeout. --- libgps_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgps_core.c') diff --git a/libgps_core.c b/libgps_core.c index 533aaec3..0cc35782 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -520,7 +520,7 @@ bool gps_waiting(struct gps_data_t * gpsdata, int timeout) /* all error conditions return "not waiting" -- crude but effective */ return (select(gpsdata->gps_fd + 1, &rfds, NULL, NULL, &tv) == 1); #else - return ((QTcpSocket *) (gpsdata->gps_fd))->waitForReadyRead(250); + return ((QTcpSocket *) (gpsdata->gps_fd))->waitForReadyRead(timeout / 1000); #endif } -- cgit v1.2.1