diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-10-25 15:38:54 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-10-25 15:38:54 +0000 |
commit | 1e1d2d136e5fd07b08a894fc995b61c3ce7e7df4 (patch) | |
tree | 4ab16e10493d2d8cc8a93afc24d34154d94376fa /gpsd.c | |
parent | 8067d2f304f0154f84f6e279d16a86c62ae67d96 (diff) | |
download | gpsd-1e1d2d136e5fd07b08a894fc995b61c3ce7e7df4.tar.gz |
Restore reporting time to millisecond resolution.
I was wrong about this; it isn't the GPS system that has a centisecond
limit, it's some vendor implementations of NMEA.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -812,7 +812,7 @@ static int handle_gpsd_request(int cfd, char *buf, int buflen) if (isnan(whoami->fixbuffer.time)==0) (void)snprintf(phrase+strlen(phrase), sizeof(phrase)-strlen(phrase), - " %.2f", + " %.3f", whoami->fixbuffer.time); else (void)strlcat(phrase, " ?", BUFSIZ); @@ -1015,7 +1015,7 @@ static int handle_gpsd_request(int cfd, char *buf, int buflen) if (isnan(whoami->device->gpsdata.sentence_time)==0) (void)snprintf(phrase+strlen(phrase), sizeof(phrase)-strlen(phrase), - " %.2f ", + " %.3f ", whoami->device->gpsdata.sentence_time); else (void)strlcat(phrase, " ? ", BUFSIZ); |