summaryrefslogtreecommitdiff
path: root/gpsrinex.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-30 19:21:08 -0800
committerGary E. Miller <gem@rellim.com>2018-11-30 19:21:08 -0800
commitcb74a6767a8f30bfb41ed24b88191ccc8567f4f7 (patch)
treeb3b620b38a0086da61806c2c39d1f6d62f74605e /gpsrinex.c
parent8c220f0609f981693e7d4baba20e2c4f2952a05c (diff)
downloadgpsd-cb74a6767a8f30bfb41ed24b88191ccc8567f4f7.tar.gz
gpsrinex: Don't report missing SNR.
Diffstat (limited to 'gpsrinex.c')
-rw-r--r--gpsrinex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpsrinex.c b/gpsrinex.c
index 8bb40e9d..6d3bf818 100644
--- a/gpsrinex.c
+++ b/gpsrinex.c
@@ -661,7 +661,9 @@ static void print_raw(struct gps_data_t *gpsdata)
}
/* map snr to RINEX snr flag [1-9] */
- if ( 12 > gpsdata->raw.meas[i].snr) {
+ if ( 0 == gpsdata->raw.meas[i].snr) {
+ snr = 0;
+ } else if ( 12 > gpsdata->raw.meas[i].snr) {
snr = 1;
} else if ( 18 >= gpsdata->raw.meas[i].snr) {
snr = 2;