[feat](trx-rs): server-side decode and aprs byte rendering

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-09 19:38:25 +01:00
parent 7b4bcb6f04
commit b3293f1de3
6 changed files with 29 additions and 27 deletions
+2 -4
View File
@@ -328,8 +328,7 @@ pub async fn run_aprs_decoder(
Ok(frame) => {
let state = state_rx.borrow().clone();
let mode = &state.status.mode;
let enabled = state.aprs_decode_enabled;
let active = enabled && matches!(mode, RigMode::PKT);
let active = matches!(mode, RigMode::PKT);
// Check for reset request
if state.aprs_decode_reset_seq != last_reset_seq {
@@ -390,8 +389,7 @@ pub async fn run_cw_decoder(
Ok(frame) => {
let state = state_rx.borrow().clone();
let mode = &state.status.mode;
let enabled = state.cw_decode_enabled;
let active = enabled && matches!(mode, RigMode::CW | RigMode::CWR);
let active = matches!(mode, RigMode::CW | RigMode::CWR);
// Check for reset request
if state.cw_decode_reset_seq != last_reset_seq {
+1
View File
@@ -421,6 +421,7 @@ fn parse_aprs(ax25: &Ax25Frame) -> AprsPacket {
dest_call,
path,
info: info_str,
info_bytes: info.to_vec(),
packet_type: packet_type.to_string(),
crc_ok: false, // set by caller
lat,