Fix Morse mode HF reception, stop button, and UX guidance

Enable direct sampling (-D 2) for RTL-SDR at HF frequencies below 24 MHz
so rtl_fm can actually receive CW signals. Add startup health check to
detect immediate rtl_fm failures. Push stopped status event from decoder
thread on EOF so the frontend auto-resets. Add frequency placeholder and
help text. Fix stop button silently swallowing errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-02-26 08:43:51 +00:00
parent 2ec458aa14
commit 0bf8341b6c
5 changed files with 65 additions and 22 deletions

View File

@@ -274,3 +274,6 @@ def morse_decoder_thread(
for event in decoder.flush():
with contextlib.suppress(queue.Full):
output_queue.put_nowait(event)
# Notify frontend that the decoder has stopped (e.g. rtl_fm died)
with contextlib.suppress(queue.Full):
output_queue.put_nowait({'type': 'status', 'status': 'stopped'})