diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-12-16 17:12:17 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-12-16 17:13:13 -0500 |
commit | 58f23f153092c4c928027d53b0e253e8359c5023 (patch) | |
tree | ef47923f81d39242a312ca02477284745b8bce7e /drivers.c | |
parent | 8e350ba6c5b9f790be6df3bfd695f33749e1fe40 (diff) | |
download | gpsd-58f23f153092c4c928027d53b0e253e8359c5023.tar.gz |
Accept '1' or '2' as AIS channel codes.
Diffstat (limited to 'drivers.c')
-rw-r--r-- | drivers.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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]; |