diff options
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c index f8edff46..1759e6a5 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -94,7 +94,9 @@ int gps_open(/*@null@*/const char *host, gpsdata->set = 0; gpsdata->status = STATUS_NO_FIX; - gps_clear_fix(&gpsdata->fix); + gpsdata->satellites_used = 0; + gps_clear_fix(&(gpsdata->fix)); + gps_clear_dop(&(gpsdata->dop)); return status; /*@ +branchstate +compdef @*/ |