summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-01 10:06:05 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-03-01 10:06:05 -0500
commit1ca627ffdcd428375a6cebb556f516fe5251121d (patch)
tree8ded5529cebb08b8518d5a88ace974337e388bab /gpsd_json.c
parent75fb682db4b9c5f95550cbaf402526730c5efa33 (diff)
downloadgpsd-1ca627ffdcd428375a6cebb556f516fe5251121d.tar.gz
A step towards decoding RTCM3.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index afc0d554..cd686f64 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -879,6 +879,8 @@ void json_rtcm3_dump(const struct rtcm3_t *rtcm,
"\"device\":\"%s\",", device);
(void)snprintf(buf + strlen(buf), buflen - strlen(buf),
"\"type\":%u,", rtcm->type);
+ (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
+ "\"length\":%u,", rtcm->length);
#define CODE(x) (unsigned int)(x)
#define INT(x) (unsigned int)(x)