diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2009-07-16 21:22:22 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2009-07-16 21:22:22 +0000 |
commit | b7dd74582b7c7d6676e01653e2e1c6b7ae7ace6c (patch) | |
tree | 170f3e17eddc9cddab61d7f85be75699e0e12153 /libgps.c | |
parent | b1f48c33ff37df5f2983275eb0f0896133966fce (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |