1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

#2029 - Forward packets to aprsi-is, even if we can't decode them.

This commit is contained in:
srcejon 2024-03-20 11:05:50 +00:00
parent be554146bd
commit ff2c3e9ff7

View File

@ -105,18 +105,15 @@ bool APRSWorker::handleMessage(const Message& cmd)
APRSPacket *aprs = new APRSPacket(); APRSPacket *aprs = new APRSPacket();
if (ax25.decode(report.getPacket())) if (ax25.decode(report.getPacket()))
{ {
if (aprs->decode(ax25)) // See: http://www.aprs-is.net/IGateDetails.aspx for gating rules
if (!aprs->m_via.contains("TCPIP")
&& !aprs->m_via.contains("TCPXX")
&& !aprs->m_via.contains("NOGATE")
&& !aprs->m_via.contains("RFONLY"))
{ {
// See: http://www.aprs-is.net/IGateDetails.aspx for gating rules aprs->m_dateTime = report.getDateTime();
if (!aprs->m_via.contains("TCPIP") QString igateMsg = aprs->toTNC2(m_settings.m_igateCallsign);
&& !aprs->m_via.contains("TCPXX") send(igateMsg.toUtf8(), igateMsg.length());
&& !aprs->m_via.contains("NOGATE")
&& !aprs->m_via.contains("RFONLY"))
{
aprs->m_dateTime = report.getDateTime();
QString igateMsg = aprs->toTNC2(m_settings.m_igateCallsign);
send(igateMsg.toUtf8(), igateMsg.length());
}
} }
} }
return true; return true;