diff --git a/sdrbase/util/ais.cpp b/sdrbase/util/ais.cpp index 71fe64e21..7654dd579 100644 --- a/sdrbase/util/ais.cpp +++ b/sdrbase/util/ais.cpp @@ -628,7 +628,7 @@ AISExtendedClassBPositionReport::AISExtendedClassBPositionReport(QByteArray ba) m_name = AISMessage::getString(ba, 17, 1, 20); - m_type = ((ba[32] & 1) << 7) | ((ba[33] >> 1) & 0x3f); + m_type = ((ba[32] & 1) << 7) | ((ba[33] >> 1) & 0x7f); } QString AISExtendedClassBPositionReport::toString()