diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-25 18:52:23 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-25 18:52:23 -0700 |
commit | 3cc2e4cb35ff0f4d9d996e4b444d6c99ec1bd5aa (patch) | |
tree | 9132daf9ca8241a5d10036e5a48574bf9aeee327 /libgps_json.c | |
parent | 6d22d7e1a224d227d6f268582e1a323cf7207cf8 (diff) | |
download | gpsd-3cc2e4cb35ff0f4d9d996e4b444d6c99ec1bd5aa.tar.gz |
libgps_json: Decode datum in the client.
No clients use it yet...
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgps_json.c b/libgps_json.c index 498196e9..1738567a 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -57,6 +57,8 @@ static int json_tpv_read(const char *buf, struct gps_data_t *gpsdata, .dflt.real = NAN}, {"alt", t_real, .addr.real = &gpsdata->fix.altitude, .dflt.real = NAN}, + {"datum", t_string, .addr.string = gpsdata->fix.datum, + .len = sizeof(gpsdata->fix.datum)}, {"epc", t_real, .addr.real = &gpsdata->fix.epc, .dflt.real = NAN}, {"epd", t_real, .addr.real = &gpsdata->fix.epd, |