From 8546a088a90355e17ab94489c92baea7b03e5d6e Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 26 Feb 2026 15:08:03 +0000 Subject: [PATCH] Use stable RTL IQ sample rate for Morse IQ fallback --- routes/morse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/morse.py b/routes/morse.py index 6675600..2d99524 100644 --- a/routes/morse.py +++ b/routes/morse.py @@ -327,7 +327,9 @@ def start_morse() -> Response: cmd[insert_at:insert_at] = ['-E', 'dc'] return cmd - iq_sample_rate = 250000 + # Use a hardware-friendly IQ rate (matches common RTL-SDR stable rates + # and waterfall defaults) before decimating to audio. + iq_sample_rate = 1024000 def _build_iq_cmd(*, direct_sampling_mode: int | None) -> tuple[list[str], float]: # CW USB-style offset tuning: keep the configured RF frequency sounding