summaryrefslogtreecommitdiff
path: root/monitor_ubx.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-03-04 02:01:01 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-03-04 02:01:01 +0000
commitbc2f0c0e5305e9c89f67a939797a16d73c8902bc (patch)
tree87f91787fbe8456b39dc56071cf1ff08efdcb0f1 /monitor_ubx.c
parent98ff1a1278d01ae55f800c39231251814283ed2d (diff)
downloadgpsd-bc2f0c0e5305e9c89f67a939797a16d73c8902bc.tar.gz
the decoders should be "static void"
remove unneeded, possibly incorrect sanity check from ubx
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r--monitor_ubx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c
index fee95206..4bab6e52 100644
--- a/monitor_ubx.c
+++ b/monitor_ubx.c
@@ -45,7 +45,8 @@ static bool ubx_initialize(void)
return true;
}
-void display_nav_svinfo(unsigned char *buf, size_t data_len)
+
+static void display_nav_svinfo(unsigned char *buf, size_t data_len)
{
unsigned int i, nchan;
@@ -54,7 +55,7 @@ void display_nav_svinfo(unsigned char *buf, size_t data_len)
nchan = getub(buf, 4);
if (nchan > 16)
- return;
+ nchan = 16;
for (i = 0; i < nchan; i++) {
unsigned int off = 8 + 12 * i;
@@ -63,7 +64,6 @@ void display_nav_svinfo(unsigned char *buf, size_t data_len)
short az;
unsigned short fl;
- if((int)getub(buf, off+4) == 0) continue;
prn = getub(buf, off+1);
fl = getleuw(buf, off+2);
ss = getub(buf, off+4);