mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 08:04:49 -05:00
Merge pull request #896 from srcejon/fix_858
Fix name decode in AIS Static Data Reports
This commit is contained in:
commit
d234c0b7cd
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user