diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-13 22:54:15 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-13 22:54:15 +0000 |
commit | 88cb95cb0948cb3e3f0e87cb7bc4ce8566ea146c (patch) | |
tree | cfd583e7a4e9d2b6a4cefa63dd8b1e9cfb485b3f /gpsd.c | |
parent | 60a6be224f2f896a017b950c269b8c61f61a47e1 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ", |