summaryrefslogtreecommitdiff
path: root/pseudonmea.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-03-13 19:04:35 -0700
committerGary E. Miller <gem@rellim.com>2019-03-13 19:04:35 -0700
commit3d5e11f50cb010ae2dc333b8ddbbdcb43922640f (patch)
tree5d739c17dafec64901a2b9da6637eae40a0edf32 /pseudonmea.c
parent3bab25ef5b820217590f4a3cf2ec5554848465f5 (diff)
downloadgpsd-3d5e11f50cb010ae2dc333b8ddbbdcb43922640f.tar.gz
pseudonmea: In $GPGSV, ouput missing PRN as blanks, not zeros.
Diffstat (limited to 'pseudonmea.c')
-rw-r--r--pseudonmea.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pseudonmea.c b/pseudonmea.c
index 6c8c6a30..c30d68f1 100644
--- a/pseudonmea.c
+++ b/pseudonmea.c
@@ -134,6 +134,7 @@ static void gpsd_binary_satellite_dump(struct gps_device_t *session,
char *bufp2 = bufp;
bufp[0] = '\0';
+ /* FIXME: should check skyview{} for valid sats first */
for (i = 0; i < session->gpsdata.satellites_visible; i++) {
if (i % 4 == 0) {
bufp2 = bufp + strlen(bufp);
@@ -145,8 +146,8 @@ static void gpsd_binary_satellite_dump(struct gps_device_t *session,
}
if (i < session->gpsdata.satellites_visible) {
if ( 0 == session->gpsdata.skyview[i].PRN) {
- /* bad prn, just make all zeros */
- str_appendf(bufp, len, ",00,00,000,00");
+ /* bad prn, just make blanks */
+ str_appendf(bufp, len, ",,,,");
} else {
str_appendf(bufp, len,
",%02d,%02d,%03d,%02.0f",