summaryrefslogtreecommitdiff
path: root/monitor_oncore.c
diff options
context:
space:
mode:
authorMick Durkin <mick.durkin@napierdeltic.demon.co.uk>2013-10-17 22:27:57 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-17 22:27:57 -0400
commit281a7a58cbab44d503c1a1b99c2df78b4c7dc390 (patch)
tree508bcc5eee033f47f3610c4e72d1b3bda68a21e5 /monitor_oncore.c
parent183ebb4eab5e625b5d2930832f9e0b8f62bf751a (diff)
downloadgpsd-281a7a58cbab44d503c1a1b99c2df78b4c7dc390.tar.gz
Fix an incorrect byte offset.
Diffstat (limited to 'monitor_oncore.c')
-rw-r--r--monitor_oncore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_oncore.c b/monitor_oncore.c
index ed2d1dc7..f5aec8da 100644
--- a/monitor_oncore.c
+++ b/monitor_oncore.c
@@ -326,7 +326,7 @@ static void oncore_update(void)
doppl = (int)getbes16(buf, off + 1);
el = (int)getub(buf, off + 3);
az = (int)getbeu16(buf, off + 4);
- health = (int)getub(buf, off + 5);
+ health = (int)getub(buf, off + 6);
(void)wmove(Bbwin, (int)Bblines[i], 1);
(void)wprintw(Bbwin, "%3d %3d %2d %5d %c%c", sv, az, el, doppl, (health & 0x02) ? 'U' : ' ', /* unhealthy */