summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-21 13:11:29 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-21 13:11:29 -0500
commit8f1e00a014dc76401462e1e7deb8cfdc8688b430 (patch)
treea31dd13b5acc7d3da36b5094ece713eaf4cafab0 /driver_ubx.c
parentcf89a66439c7fc4a950860d628383e341b692255 (diff)
downloadgpsd-8f1e00a014dc76401462e1e7deb8cfdc8688b430.tar.gz
Refactor time handling yet again. All regression tests pass.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index fcbdd51f..8b5cbed3 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -73,7 +73,7 @@ ubx_msg_nav_sol(struct gps_device_t *session, unsigned char *buf,
if ((flags & (UBX_SOL_VALID_WEEK | UBX_SOL_VALID_TIME)) != 0) {
tow = (unsigned int)getleu32(buf, 0);
gw = (unsigned short)getles16(buf, 8);
- session->newdata.time = gpsd_resolve_time(session, gw, tow / 1000.0);
+ session->newdata.time = gpsd_gpstime_resolve(session, gw, tow / 1000.0);
mask |= TIME_IS;
}
@@ -176,7 +176,7 @@ ubx_msg_nav_timegps(struct gps_device_t *session, unsigned char *buf,
flags = (unsigned int)getub(buf, 11);
if ((flags & 0x7) != 0)
session->context->leap_seconds = (int)getub(buf, 10);
- session->newdata.time = gpsd_resolve_time(session,
+ session->newdata.time = gpsd_gpstime_resolve(session,
(unsigned short int)gw,
(double)tow / 1000.0);