diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-31 19:19:24 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-31 19:19:24 -0400 |
commit | 2a27bea64b936dffe687ed38f210dddc3ccfc681 (patch) | |
tree | d4535f6d40e06961ab6d29cf167654da2a761932 /libgpsd_core.c | |
parent | 4acdd7a9436153ab7ee036a935ee1abb30bcabb0 (diff) | |
download | gpsd-2a27bea64b936dffe687ed38f210dddc3ccfc681.tar.gz |
Factor out a little function to initiaslize the packet tester properly.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 34d8041f..abb7215f 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -368,8 +368,7 @@ int gpsd_activate(struct gps_device_t *session) #ifdef SIRF_ENABLE session->driver.sirf.satcounter = 0; #endif /* SIRF_ENABLE */ - session->packet.char_counter = 0; - session->packet.retry_counter = 0; + packet_init(&session->packet); gpsd_report(LOG_INF, "gpsd_activate(): opened GPS (fd %d)\n", session->gpsdata.gps_fd); |