summaryrefslogtreecommitdiff
path: root/driver_garmin.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-10 05:26:00 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-03-10 05:26:00 -0500
commit736379fc0411971e4f2aa3e8d048ab1205dbcc76 (patch)
tree828aa83305b34f5804d75d65ed8a35cbad930a30 /driver_garmin.c
parentc56017271ca1d53b5f45e5dcff551fed8e3e29be (diff)
downloadgpsd-736379fc0411971e4f2aa3e8d048ab1205dbcc76.tar.gz
And still more double -> timestamp_t moves.
All regression tests pass, splint passes.
Diffstat (limited to 'driver_garmin.c')
-rw-r--r--driver_garmin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_garmin.c b/driver_garmin.c
index 326eb695..0c613c85 100644
--- a/driver_garmin.c
+++ b/driver_garmin.c
@@ -245,7 +245,7 @@ typedef struct
} Packet_t;
// useful funcs to read/write ints
-// floats and doubles are Intel order only...
+// floats and doubles are Intel (little-endian) order only...
static inline void set_int16(uint8_t * buf, uint32_t value)
{
buf[0] = (uint8_t) (0x0FF & value);
@@ -374,7 +374,7 @@ gps_mask_t PrintSERPacket(struct gps_device_t *session, unsigned char pkt_id,
// gps_tow is always like x.999 or x.998 so just round it
time_l += (time_t) round(pvt->gps_tow);
session->context->gps_tow = pvt->gps_tow;
- session->newdata.time = (double)time_l;
+ session->newdata.time = (timestamp_t)time_l;
gpsd_report(LOG_PROG, "Garmin: time_l: %ld\n", (long int)time_l);
session->newdata.latitude = radtodeg(pvt->lat);