summaryrefslogtreecommitdiff
path: root/driver_italk.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-03-04 16:57:09 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-03-04 16:57:09 +0000
commit56764b0b48fdcfbe32df1294306bd6982e274b75 (patch)
tree3755aa31e6e3f4f2919839502bc2ba23d6e14eed /driver_italk.h
parent8a1f58de43ea5552e9fea97620f1a30c359e2b28 (diff)
downloadgpsd-56764b0b48fdcfbe32df1294306bd6982e274b75.tar.gz
fix another bug in the italk decoder.
bad PRN_STATUS messages can cause gpsd to run off the end of allocated space for SV info leading to a bus error later on when we try recalculate the DOPs.
Diffstat (limited to 'driver_italk.h')
-rw-r--r--driver_italk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver_italk.h b/driver_italk.h
index ec7ee111..73997ad6 100644
--- a/driver_italk.h
+++ b/driver_italk.h
@@ -38,6 +38,8 @@
/* Host controller software (PD) */
#define TASK_HOST 31
+#define MAX_NR_VISIBLE_PRNS 12
+
/* iTalk Message IDs - isuite.fastrax.fi/sdk/331/Protocols/PRO_MsgId.html */
#define ITALK_ACQ_DATA 1
#define ITALK_PRN_STATUS 2