diff options
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; } |