diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-10 11:14:44 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-10 11:14:44 -0400 |
commit | 1ce22bcd7de1cf0d53f57cbc2430255af09123c8 (patch) | |
tree | e51d5d852dbc78211770007c38c866f1b5293fbb /gpsd.c | |
parent | cd3e193a4e63281a431d58c47238aed3d9996e0b (diff) | |
download | gpsd-1ce22bcd7de1cf0d53f57cbc2430255af09123c8.tar.gz |
First cut at JSON output for TNT Revolution device.
Not yet documented, but now we at least have a regression test.
All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1702,6 +1702,13 @@ int main(int argc, char *argv[]) buf2, sizeof(buf2)); (void)throttled_write(sub, buf2, strlen(buf2)); } +#ifdef COMPASS_ENABLE + if ((changed & ATT_IS) != 0) { + json_att_dump(&device->gpsdata, + buf2, sizeof(buf2)); + (void)throttled_write(sub, buf2, strlen(buf2)); + } +#endif /* COMPASS_ENABLE */ #ifdef RTCM104V2_ENABLE if ((changed & RTCM2_IS) != 0) { rtcm2_json_dump(&device->gpsdata.rtcm2, buf2, sizeof(buf2)); |