diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-20 15:44:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-20 15:44:04 +0000 |
commit | 1397bd55c028a2ea9d70d0a51d819b687e0241dd (patch) | |
tree | 73c0a206f3a26881c1b9f974e79e393fd3afb731 /libgpsd_core.c | |
parent | 7f762e4a7fb192106b84eb4dd779ea4286267cc9 (diff) | |
download | gpsd-1397bd55c028a2ea9d70d0a51d819b687e0241dd.tar.gz |
Changes responding to Wolfgang's long response about RTCM, and factoring
out subframe processing.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 0186e8d1..51cdc2bd 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -651,10 +651,12 @@ char /*@ observer @*/ *gpsd_hexdump(void *binbuf, size_t binbuflen) return hexbuf; } +#ifdef BINARY_ENABLE +/*@ -usedef @*/ void gpsd_interpret_subframe(struct gps_device_t *session, unsigned int chan, unsigned int svid, - unsigned int word[10]) + unsigned int words[]) /* extract leap-second from RTCM-104 subframe data */ { /* @@ -681,7 +683,7 @@ void gpsd_interpret_subframe(struct gps_device_t *session, * changes 1 second every few years. Maybe." */ int i; - unsigned int pageid, subframe, leap, words[10]; + unsigned int pageid, subframe, leap; gpsd_report(4, "50B (raw): CH=%d, SV=%d %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x\n", chan, svid, words[0], words[1], words[2], words[3], words[4], @@ -763,3 +765,6 @@ void gpsd_interpret_subframe(struct gps_device_t *session, session->context->valid |= LEAP_SECOND_VALID; } } +/*@ +usedef @*/ +#endif /* BINARY_ENABLE */ + |