summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-13 22:54:15 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-13 22:54:15 +0000
commit88cb95cb0948cb3e3f0e87cb7bc4ce8566ea146c (patch)
treecfd583e7a4e9d2b6a4cefa63dd8b1e9cfb485b3f /gpsd.c
parent60a6be224f2f896a017b950c269b8c61f61a47e1 (diff)
downloadgpsd-88cb95cb0948cb3e3f0e87cb7bc4ce8566ea146c.tar.gz
Make sure sentence time is unset properly when a driver doesn't return it.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 7b9d68cb..e2046e3c 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -752,7 +752,7 @@ static int handle_request(int cfd, char *buf, int buflen)
(void)strcat(phrase, whoami->device->gpsdata.tag);
else
(void)strcat(phrase, "-");
- if (whoami->device->gpsdata.set & TIME_SET)
+ if (whoami->device->gpsdata.sentence_time != TIME_NOT_VALID)
(void)snprintf(phrase+strlen(phrase),
sizeof(phrase)-strlen(phrase),
" %f ",