mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 13:51:47 -05:00
Stop UDP forwarded AIS packets containing null byte from being truncated as per #903
This commit is contained in:
parent
7500932c7c
commit
02cbb599f6
@ -171,7 +171,7 @@ bool AISDemod::handleMessage(const Message& cmd)
|
||||
}
|
||||
else
|
||||
{
|
||||
QString nmea = AISMessage::toNMEA(report.getMessage().data());
|
||||
QString nmea = AISMessage::toNMEA(report.getMessage());
|
||||
QByteArray bytes = nmea.toLatin1();
|
||||
m_udpSocket.writeDatagram(bytes.data(), bytes.size(),
|
||||
QHostAddress(m_settings.m_udpAddress), m_settings.m_udpPort);
|
||||
|
@ -32,7 +32,7 @@ QString AISMessage::toHex()
|
||||
}
|
||||
|
||||
// See: https://gpsd.gitlab.io/gpsd/AIVDM.html
|
||||
QString AISMessage::toNMEA(QByteArray bytes)
|
||||
QString AISMessage::toNMEA(const QByteArray bytes)
|
||||
{
|
||||
QStringList nmeaSentences;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user