summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-10 11:14:44 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-10 11:14:44 -0400
commit1ce22bcd7de1cf0d53f57cbc2430255af09123c8 (patch)
treee51d5d852dbc78211770007c38c866f1b5293fbb /gpsd.c
parentcd3e193a4e63281a431d58c47238aed3d9996e0b (diff)
downloadgpsd-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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index d9557e8f..e8a8ff23 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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));