mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Force explicit rtl_fm squelch-off and log first PCM chunk
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user