From 8f1e00a014dc76401462e1e7deb8cfdc8688b430 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 21 Jan 2011 13:11:29 -0500 Subject: Refactor time handling yet again. All regression tests pass. --- driver_ubx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver_ubx.c') 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); -- cgit v1.2.1