From 2ec458aa1438f4b2c8991f99f04f42d5ff43dd1c Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 26 Feb 2026 08:09:25 +0000 Subject: [PATCH] Fix Morse mode rejecting valid HF frequencies validate_frequency() defaults to 24-1766 MHz (VHF/UHF range), but Morse/CW operates on HF bands (0.5-30 MHz). Pass explicit min/max to allow HF frequencies. Co-Authored-By: Claude Opus 4.6 --- routes/morse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/morse.py b/routes/morse.py index 56800a2..c30a2d4 100644 --- a/routes/morse.py +++ b/routes/morse.py @@ -64,7 +64,7 @@ def start_morse() -> Response: # Validate standard SDR inputs try: - freq = validate_frequency(data.get('frequency', '14.060')) + freq = validate_frequency(data.get('frequency', '14.060'), min_mhz=0.5, max_mhz=30.0) gain = validate_gain(data.get('gain', '0')) ppm = validate_ppm(data.get('ppm', '0')) device = validate_device_index(data.get('device', '0'))