Force explicit rtl_fm squelch-off and log first PCM chunk

This commit is contained in:
Smittix
2026-02-26 11:59:07 +00:00
parent 63cc1647fb
commit c1dd615e11
2 changed files with 17 additions and 0 deletions

View File

@@ -767,6 +767,7 @@ def morse_decoder_thread(
last_pcm_at: float | None = None
pcm_bytes = 0
pcm_report_at = time.monotonic()
first_pcm_logged = False
reader_done = threading.Event()
reader_thread: threading.Thread | None = None
@@ -853,6 +854,14 @@ def morse_decoder_thread(
last_pcm_at = time.monotonic()
pcm_bytes += len(data)
if not first_pcm_logged:
first_pcm_logged = True
with contextlib.suppress(queue.Full):
output_queue.put_nowait({
'type': 'info',
'text': f'[pcm] first chunk: {len(data)} bytes',
})
events = decoder.process_block(data)
for event in events:
if event.get('type') == 'scope':