summaryrefslogtreecommitdiff
path: root/driver_zodiac.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-06-22 15:39:12 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-06-22 15:39:12 +0000
commitfb4ed58124d3df1e8105d7df0f2c33d7333b9819 (patch)
tree183e0d56fe4a265a04ccce55dc8d83f6251e63cd /driver_zodiac.c
parent7a84ce188ee294b8f7d361f28ae3905f9cce7591 (diff)
downloadgpsd-fb4ed58124d3df1e8105d7df0f2c33d7333b9819.tar.gz
change the signal strength member to float.
it can store all integer values we're likely to see, plus the floating point values that some protocols use in their raw measurement messages. regression tests still pass.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r--driver_zodiac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c
index a77a2f00..ca8cd041 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -249,7 +249,7 @@ static gps_mask_t handle1002(struct gps_device_t *session)
for (j = 0; j < ZODIAC_CHANNELS; j++) {
if (session->gpsdata.PRN[j] != prn)
continue;
- session->gpsdata.ss[j] = (int)getzword(17 + (3 * i));
+ session->gpsdata.ss[j] = (float)getzword(17 + (3 * i));
break;
}
}