1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 15:26:33 -04:00

Merge pull request #896 from srcejon/fix_858

Fix name decode in AIS Static Data Reports
This commit is contained in:
Edouard Griffiths 2021-05-11 12:24:25 +02:00 committed by GitHub
commit d234c0b7cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -687,12 +687,12 @@ AISStaticDataReport::AISStaticDataReport(QByteArray ba) :
m_partNumber = ba[4] & 0x3;
if (m_partNumber == 0)
{
m_name = AISMessage::getString(ba, 5, 0, 20);
m_name = AISMessage::getString(ba, 5, 8, 20);
}
else if (m_partNumber == 1)
{
m_type = ba[5] & 0xff;
m_vendorId = AISMessage::getString(ba, 6, 0, 7);
m_vendorId = AISMessage::getString(ba, 6, 8, 7);
m_callsign = AISMessage::getString(ba, 11, 6, 7);
}
}