diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-11-30 01:37:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-11-30 01:37:49 +0000 |
commit | a25d9a2036f3e43276353ca81586d0e4e4f6d4ec (patch) | |
tree | e8885cc6ff9aaad5e8039ec66a091b833c80ea36 /gpsdecode.c | |
parent | f431ff9d1b054bfbcddd801c926ec2f9e6e730fa (diff) | |
download | gpsd-a25d9a2036f3e43276353ca81586d0e4e4f6d4ec.tar.gz |
Document that a trailing @ should terminate a packed-six-bit AIS string.
Ensure that both decoders do this.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsdecode.c b/gpsdecode.c index 113e65c7..d566f5a8 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -365,6 +365,8 @@ static void decode(FILE *fpin, FILE *fpout) rtcm3_dump(&rtcm3, stdout); } else if (lexer.type == AIVDM_PACKET) { + if (verbose >=1 ) + (void)fputs((char *)lexer.outbuffer, stdout); /*@ -uniondef */ if (aivdm_decode((char *)lexer.outbuffer, lexer.outbuflen, &aivdm, &ais)) { if (!json) |