diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-11 18:15:59 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-11 18:15:59 -0700 |
commit | a7dc77f0c6730f97e5dfbaefa70bfa3730caaeff (patch) | |
tree | b5871ac1f1548d6055e2edae704a7d9a5a6dda8d /libgps_core.c | |
parent | 9628f57fc93982fd22e2e71344d25f41914bbdfb (diff) | |
download | gpsd-a7dc77f0c6730f97e5dfbaefa70bfa3730caaeff.tar.gz |
ATT: centralize clearing of the attitude data.
This showed up a bug where rtcm3_unpack() was not clearing its
rtcm3 data, which is a union with the attitude data.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c index e02ff1b9..795a9018 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -111,8 +111,9 @@ int gps_open(const char *host, gpsdata->set = 0; gpsdata->status = STATUS_NO_FIX; gpsdata->satellites_used = 0; - gps_clear_fix(&(gpsdata->fix)); + gps_clear_att(&(gpsdata->attitude)); gps_clear_dop(&(gpsdata->dop)); + gps_clear_fix(&(gpsdata->fix)); return status; } |