summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-12-16 17:12:17 -0500
committerEric S. Raymond <esr@thyrsus.com>2012-12-16 17:13:13 -0500
commit58f23f153092c4c928027d53b0e253e8359c5023 (patch)
treeef47923f81d39242a312ca02477284745b8bce7e /drivers.c
parent8e350ba6c5b9f790be6df3bfd695f33749e1fe40 (diff)
downloadgpsd-58f23f153092c4c928027d53b0e253e8359c5023.tar.gz
Accept '1' or '2' as AIS channel codes.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers.c b/drivers.c
index 5d70d830..8d6ebd0b 100644
--- a/drivers.c
+++ b/drivers.c
@@ -1273,14 +1273,11 @@ static bool aivdm_decode(const char *buf, size_t buflen,
ais_context = &ais_contexts[0];
break;
case '1':
- gpsd_report(LOG_ERROR, "invalid AIS channel 0x%0x '%c'. Assuming 'A'\n",
- field[4][0], (field[4][0] != (unsigned char)'\0' ? field[4][0]:' '));
/*@fallthrough@*/
case 'A':
ais_context = &ais_contexts[0];
break;
case '2':
- gpsd_report(LOG_ERROR, "invalid AIS channel '2'. Assuming 'B'.\n");
/*@fallthrough@*/
case 'B':
ais_context = &ais_contexts[1];