summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-07-16 21:22:22 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-07-16 21:22:22 +0000
commitb7dd74582b7c7d6676e01653e2e1c6b7ae7ace6c (patch)
tree170f3e17eddc9cddab61d7f85be75699e0e12153 /libgps.c
parentb1f48c33ff37df5f2983275eb0f0896133966fce (diff)
downloadgpsd-b7dd74582b7c7d6676e01653e2e1c6b7ae7ace6c.tar.gz
catch up with changing the signal strength to double.
>From Hakan Johansson on gpsd-dev (sorry, svn doesn't like the accent)
Diffstat (limited to 'libgps.c')
-rw-r--r--libgps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps.c b/libgps.c
index e2df5ab7..bdc1b1a1 100644
--- a/libgps.c
+++ b/libgps.c
@@ -370,7 +370,7 @@ static void gps_unpack(char *buf, struct gps_data_t *gpsdata)
int PRN[MAXCHANNELS];
int elevation[MAXCHANNELS], azimuth[MAXCHANNELS];
int used[MAXCHANNELS];
- float ss[MAXCHANNELS], f4;
+ double ss[MAXCHANNELS], f4;
char tag[MAXTAGLEN+1], timestamp[21];
(void)sscanf(sp, "Y=%8s %20s %d ",
@@ -386,7 +386,7 @@ static void gps_unpack(char *buf, struct gps_data_t *gpsdata)
for (j = 0, gpsdata->satellites_used = 0; j < gpsdata->satellites; j++) {
if ((sp != NULL) && ((sp = strchr(sp, ':')) != NULL)) {
sp++;
- (void)sscanf(sp, "%d %d %d %f %d", &i1, &i2, &i3, &f4, &i5);
+ (void)sscanf(sp, "%d %d %d %lf %d", &i1, &i2, &i3, &f4, &i5);
PRN[j] = i1;
elevation[j] = i2; azimuth[j] = i3;
ss[j] = f4; used[j] = i5;