From a25d9a2036f3e43276353ca81586d0e4e4f6d4ec Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 30 Nov 2009 01:37:49 +0000 Subject: Document that a trailing @ should terminate a packed-six-bit AIS string. Ensure that both decoders do this. --- gpsdecode.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gpsdecode.c') 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) -- cgit v1.2.1