diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-21 13:11:29 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-21 13:11:29 -0500 |
commit | 8f1e00a014dc76401462e1e7deb8cfdc8688b430 (patch) | |
tree | a31dd13b5acc7d3da36b5094ece713eaf4cafab0 /driver_navcom.c | |
parent | cf89a66439c7fc4a950860d628383e341b692255 (diff) | |
download | gpsd-8f1e00a014dc76401462e1e7deb8cfdc8688b430.tar.gz |
Refactor time handling yet again. All regression tests pass.
Diffstat (limited to 'driver_navcom.c')
-rw-r--r-- | driver_navcom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_navcom.c b/driver_navcom.c index 6801967b..d4038155 100644 --- a/driver_navcom.c +++ b/driver_navcom.c @@ -402,7 +402,7 @@ static gps_mask_t handle_0xb1(struct gps_device_t *session) /* Timestamp */ week = (uint16_t) getleu16(buf, 3); tow = (uint32_t) getleu32(buf, 5); - session->newdata.time = gpsd_resolve_time(session, week, tow / 1000.0); + session->newdata.time = gpsd_gpstime_resolve(session, week, tow / 1000.0); /* Satellites used */ sats_used = (uint32_t) getleu32(buf, 9); @@ -719,7 +719,7 @@ static gps_mask_t handle_0x86(struct gps_device_t *session) //uint8_t pdop = getub(buf, 15); /* Timestamp */ - session->gpsdata.skyview_time = gpsd_resolve_time(session, + session->gpsdata.skyview_time = gpsd_gpstime_resolve(session, (unsigned short)week, (double)tow / 1000.0f); @@ -911,7 +911,7 @@ static gps_mask_t handle_0xb5(struct gps_device_t *session) session->newdata.epv = alt_sd * 1.96; mask |= (HERR_IS | VERR_IS); #endif /* __UNUSED__ */ - session->newdata.time = gpsd_resolve_time(session, + session->newdata.time = gpsd_gpstime_resolve(session, (unsigned short)week, (double)tow / 1000.0f); gpsd_report(LOG_PROG, |