summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
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 ",