summaryrefslogtreecommitdiff
path: root/rtcm3_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-05-01 11:52:44 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-05-01 11:52:44 -0400
commit981e23a67af4e9c5d225f07979eb81dcc00d2291 (patch)
tree1d57c4d273dfda36c69d4f6677f05998889be158 /rtcm3_json.c
parent8ed2110796b33df581aeb9a73ec491dd78d9902b (diff)
downloadgpsd-981e23a67af4e9c5d225f07979eb81dcc00d2291.tar.gz
Two missing fields in RTCM3 1001 parsing.
Turns out we can't use short in the rtcm3 structure, JSON types won't map to it. Well, in theory we could map int to it with a range check at parsing time, but it's not worth the effort. All regression tests pass.
Diffstat (limited to 'rtcm3_json.c')
-rw-r--r--rtcm3_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtcm3_json.c b/rtcm3_json.c
index 6fe00f15..982b57f5 100644
--- a/rtcm3_json.c
+++ b/rtcm3_json.c
@@ -57,10 +57,10 @@ int json_rtcm3_read(const char *buf,
const struct json_attr_t json_rtcm1001[] = {
RTCM3_HEADER
{"station_id", t_uinteger, .addr.uinteger = R1001.station_id},
- //{"tow", t_uinteger, .addr.time = R1001.tow},
+ {"tow", t_uinteger, .addr.uinteger = (unsigned int *)R1001.tow},
{"sync", t_boolean, .addr.boolean = R1001.sync},
{"smoothing", t_boolean, .addr.boolean = R1001.smoothing},
- //{"interval", t_uinteger, .addr.uinteger = R1001.interval},
+ {"interval", t_uinteger, .addr.uinteger = R1001.interval},
{"satellites", t_array, STRUCTARRAY(rtcm3->rtcmtypes.rtcm3_1001.rtk_data,
rtcm1001_satellite, &satcount)},
{NULL},