diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-30 19:21:08 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-30 19:21:08 -0800 |
commit | cb74a6767a8f30bfb41ed24b88191ccc8567f4f7 (patch) | |
tree | b3b620b38a0086da61806c2c39d1f6d62f74605e /gpsrinex.c | |
parent | 8c220f0609f981693e7d4baba20e2c4f2952a05c (diff) | |
download | gpsd-cb74a6767a8f30bfb41ed24b88191ccc8567f4f7.tar.gz |
gpsrinex: Don't report missing SNR.
Diffstat (limited to 'gpsrinex.c')
-rw-r--r-- | gpsrinex.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |