mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 23:14:47 -04:00
M17 mod: APRS: alternate status and position messages when insert location button is engaged
This commit is contained in:
@@ -66,9 +66,18 @@ bool M17ModProcessor::handleMessage(const Message& cmd)
|
||||
M17ModAX25 modAX25;
|
||||
QString strData;
|
||||
|
||||
if (notif.getInsertPosition()) {
|
||||
strData += "!" + formatAPRSPosition();
|
||||
} else {
|
||||
if (notif.getInsertPosition())
|
||||
{
|
||||
if (m_insertPositionToggle) {
|
||||
strData += "!" + formatAPRSPosition();
|
||||
} else {
|
||||
strData = notif.getData();
|
||||
}
|
||||
|
||||
m_insertPositionToggle = !m_insertPositionToggle;
|
||||
}
|
||||
else
|
||||
{
|
||||
strData = notif.getData();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user