mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
#2029 - Forward packets to aprsi-is, even if we can't decode them.
This commit is contained in:
parent
be554146bd
commit
ff2c3e9ff7
@ -105,18 +105,15 @@ bool APRSWorker::handleMessage(const Message& cmd)
|
||||
APRSPacket *aprs = new APRSPacket();
|
||||
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
|
||||
if (!aprs->m_via.contains("TCPIP")
|
||||
&& !aprs->m_via.contains("TCPXX")
|
||||
&& !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());
|
||||
}
|
||||
aprs->m_dateTime = report.getDateTime();
|
||||
QString igateMsg = aprs->toTNC2(m_settings.m_igateCallsign);
|
||||
send(igateMsg.toUtf8(), igateMsg.length());
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user