[fix](trx-ft8): align decode result layout

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-09 21:41:08 +01:00
parent 4d32f017a8
commit 995ddd7306
2 changed files with 3 additions and 10 deletions
+3 -1
View File
@@ -11,10 +11,12 @@ const F_MAX_HZ: f32 = 3000.0;
const TIME_OSR: i32 = 2;
const FREQ_OSR: i32 = 2;
const FTX_MAX_MESSAGE_LENGTH: usize = 35;
#[repr(C)]
#[derive(Clone, Copy)]
struct Ft8DecodeResultRaw {
text: [libc::c_char; 64],
text: [libc::c_char; FTX_MAX_MESSAGE_LENGTH],
snr_db: c_float,
dt_s: c_float,
freq_hz: c_float,
-9
View File
@@ -694,15 +694,6 @@ pub async fn run_ft8_decoder(
Ok(dur) => dur.as_millis() as i64,
Err(_) => 0,
};
let base_hz = match &state.status.freq.hz {
hz => *hz as f32,
};
info!(
"FT8 decode: base_hz={} offset_hz={} msg=\"{}\"",
base_hz,
res.freq_hz,
res.text
);
let msg = Ft8Message {
ts_ms,
snr_db: res.snr_db,