summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-07-13 10:51:03 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-07-13 10:51:03 +0000
commit680775133a16bc9ba4801784add74ccda9d5e9d9 (patch)
tree6489829397101a6dbf1d13e2e8335640f26aa9a1 /gps.h
parent72405d13d75ae43f843bf8374bafba8c15483a61 (diff)
downloadgpsd-680775133a16bc9ba4801784add74ccda9d5e9d9.tar.gz
Use double rather than float for satellite signal strengths.
Makes no difference on 64-bit hardware and simplifies life for the JSON parser, which doesn't have float type support.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps.h b/gps.h
index ba4034a7..b20e17e8 100644
--- a/gps.h
+++ b/gps.h
@@ -841,7 +841,7 @@ struct gps_data_t {
int PRN[MAXCHANNELS]; /* PRNs of satellite */
int elevation[MAXCHANNELS]; /* elevation of satellite */
int azimuth[MAXCHANNELS]; /* azimuth */
- float ss[MAXCHANNELS]; /* signal-to-noise ratio (dB) */
+ double ss[MAXCHANNELS]; /* signal-to-noise ratio (dB) */
/* where and what gpsd thinks the device is */
char gps_device[PATH_MAX]; /* only valid if non-null. */