Skip to content

Commit

Permalink
Decode 10 char for downlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy committed Jan 23, 2025
1 parent d4c6060 commit fe86dd2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions decode/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,18 @@ QString *toOutputFormat(OutputFormat fmt, const QString &station_id,
*out += QString("M=%1 ").arg(item.moretocome ? "1" : "0");
}

*out += QString("LBL=%1%2 %3")
.arg(QChar(item.LABEL[0]))
.arg(QChar(label1))
.arg(message);
*out += QString("LBL=%1%2 ").arg(QChar(item.LABEL[0])).arg(QChar(label1));

if (!message.isEmpty()) {
if (item.downlink) {
*out += QString("MSN=%1 FLT=%2 %3")
.arg(message.mid(0, 4))
.arg(message.mid(4, 6))
.arg(message.mid(10));
} else {
*out += QString("%1").arg(message);
}
}
}
return out;
} else {
Expand Down

0 comments on commit fe86dd2

Please sign in to comment.