summaryrefslogtreecommitdiff
path: root/gpsdecode.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-01 09:41:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-01 09:41:37 +0000
commit17a2237540735cfe3284226e4422bb1d09e71b4e (patch)
tree14f4529031e2c64c6850bcf9ca3bd6704f9c3af9 /gpsdecode.c
parentafb11120aba9cbe40e2e3e0f04550833817253e5 (diff)
downloadgpsd-17a2237540735cfe3284226e4422bb1d09e71b4e.tar.gz
Fix dumping of AIS message 19 (dte was missing).
Code generation for AIS messages up to 19. Rebuild two affected regression tests (all tests pass).
Diffstat (limited to 'gpsdecode.c')
-rw-r--r--gpsdecode.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gpsdecode.c b/gpsdecode.c
index 2f4054dd..923960f3 100644
--- a/gpsdecode.c
+++ b/gpsdecode.c
@@ -211,17 +211,17 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
ais->type18.heading,
ais->type18.second,
ais->type18.regional,
- ais->type18.cs_flag,
- ais->type18.display_flag,
- ais->type18.dsc_flag,
- ais->type18.band_flag,
- ais->type18.msg22_flag,
+ ais->type18.cs,
+ ais->type18.display,
+ ais->type18.dsc,
+ ais->type18.band,
+ ais->type18.msg22,
ais->type18.raim,
ais->type18.radio);
break;
case 19:
(void)snprintf(buf+strlen(buf), buflen-strlen(buf),
- "%u,%u,%u,%d,%d,%u,%u,%u,0x%x,%s,%u,%u,%u,%u,%u,%u,%d,0x%x",
+ "%u,%u,%u,%d,%d,%u,%u,%u,0x%x,%s,%u,%u,%u,%u,%u,%u,%d,%u,%u",
ais->type19.reserved,
ais->type19.speed,
(uint)ais->type19.accuracy,
@@ -239,6 +239,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
ais->type19.to_starboard,
ais->type19.epfd,
ais->type19.raim,
+ ais->type19.dte,
ais->type19.assigned);
break;
case 20: /* Data Link Management Message */