[chore](trx-server): log ft8 toggle and offsets
Co-authored-by: Codex <codex@openai.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -694,6 +694,15 @@ 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,
|
||||
|
||||
@@ -382,6 +382,7 @@ async fn process_command(
|
||||
}
|
||||
RigCommand::SetFt8DecodeEnabled(en) => {
|
||||
ctx.state.ft8_decode_enabled = en;
|
||||
info!("FT8 decode {}", if en { "enabled" } else { "disabled" });
|
||||
let _ = ctx.state_tx.send(ctx.state.clone());
|
||||
return snapshot_from(ctx.state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user