[fix](trx-server): accept CW tone range up to 10 kHz
Expand server-side CW tone command clamping to 100-10000 Hz to match frontend controls and picker behavior. Co-authored-by: Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -393,7 +393,7 @@ async fn process_command(
|
||||
return snapshot_from(ctx.state);
|
||||
}
|
||||
RigCommand::SetCwToneHz(tone_hz) => {
|
||||
ctx.state.cw_tone_hz = tone_hz.clamp(300, 1200);
|
||||
ctx.state.cw_tone_hz = tone_hz.clamp(100, 10_000);
|
||||
let _ = ctx.state_tx.send(ctx.state.clone());
|
||||
return snapshot_from(ctx.state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user