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 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-02-26 08:09:25 +00:00
parent 37f0197f9a
commit 2ec458aa14
+1 -1
View File
@@ -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'))