diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-25 17:52:42 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-25 17:52:42 -0700 |
commit | 1b72497a7f44658b8a3e9b27f1c5d1f5bb7a615a (patch) | |
tree | 784c53f5f95c6efb01ea9cd496473b96fce03076 /gpsutils.c | |
parent | ee37b0ec95ddda2d744687246c7cf6337211aecd (diff) | |
download | gpsd-1b72497a7f44658b8a3e9b27f1c5d1f5bb7a615a.tar.gz |
gps_data_t: Add datum field. Add decode for $PGRMM.
Sadly, $PGRMM is after a cycle ender and the data is never
reported, so no regression changes. Cycle ender needs to get fixed...
Diffstat (limited to 'gpsutils.c')
-rw-r--r-- | gpsutils.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -363,6 +363,9 @@ void gps_merge_fix(struct gps_fix_t *to, to->ecef.vz = from->ecef.vz; to->ecef.vAcc = from->ecef.vAcc; } + if ('\0' != from->datum[0]) { + strlcpy(to->datum, from->datum, sizeof(to->datum)); + } } /* NOTE: timestamp_t is a double, so this is only precise to |