Fix previous commit.

This commit is contained in:
srcejon 2024-03-20 11:25:01 +00:00
parent 6db4dfa36a
commit de4bc18337
1 changed files with 14 additions and 8 deletions

View File

@ -104,6 +104,11 @@ bool APRSWorker::handleMessage(const Message& cmd)
AX25Packet ax25; AX25Packet ax25;
APRSPacket *aprs = new APRSPacket(); APRSPacket *aprs = new APRSPacket();
if (ax25.decode(report.getPacket())) if (ax25.decode(report.getPacket()))
{
// #2029 - Forward data even if we can't decode it fully
aprs->decode(ax25);
if (!aprs->m_data.isEmpty())
{ {
// See: http://www.aprs-is.net/IGateDetails.aspx for gating rules // See: http://www.aprs-is.net/IGateDetails.aspx for gating rules
if (!aprs->m_via.contains("TCPIP") if (!aprs->m_via.contains("TCPIP")
@ -116,6 +121,7 @@ bool APRSWorker::handleMessage(const Message& cmd)
send(igateMsg.toUtf8(), igateMsg.length()); send(igateMsg.toUtf8(), igateMsg.length());
} }
} }
}
return true; return true;
} }
else else