summaryrefslogtreecommitdiff
path: root/driver_superstar2.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-09-10 17:47:58 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-09-10 17:47:58 +0000
commitfc1df0c4a76b31b805fb7de588c27ea8b7e58848 (patch)
treebdda4066e1ef97324a4837b9ac7a5c8bcbbea283 /driver_superstar2.c
parent077cb3b8d4d0db9f2f74df3a8720422c331a3270 (diff)
downloadgpsd-fc1df0c4a76b31b805fb7de588c27ea8b7e58848.tar.gz
pacify splint
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r--driver_superstar2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c
index c4bfb9c0..850c5a29 100644
--- a/driver_superstar2.c
+++ b/driver_superstar2.c
@@ -356,13 +356,13 @@ superstar2_msg_measurement(struct gps_device_t *session, unsigned char *buf, siz
for(i = 0; i < n; i++){
session->gpsdata.raw.mtime[i] = t;
session->gpsdata.PRN[i] = (int)getub(buf, 11*i + 15) & 0x1f;
- session->gpsdata.ss[i] = getub(buf, 11*i * 15 +1 )/4.0;
+ session->gpsdata.ss[i] = (double)getub(buf, 11*i * 15 +1 )/4.0;
session->gpsdata.raw.codephase[i] = (double)getleul(buf, 11*i * 15 + 2);
ul = getleul(buf, 11*i * 15 + 6);
- session->gpsdata.raw.satstat[i] = ul & 0x03L;
- session->gpsdata.raw.carrierphase[i] = (ul >> 2) & 0x03ffL;
- session->gpsdata.raw.pseudorange[i] = (ul >> 12);
+ session->gpsdata.raw.satstat[i] = (unsigned int)(ul & 0x03L);
+ session->gpsdata.raw.carrierphase[i] = (double)((ul >> 2) & 0x03ffL);
+ session->gpsdata.raw.pseudorange[i] = (double)(ul >> 12);
}
mask |= RAW_SET | ONLINE_SET;