mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 14:50:00 -07:00
Fix Doppler detecting events clobbering decode progress UI
The Doppler tracking thread emits detecting events every 5s from a separate thread, unaware of decode state. The previous to_dict() change included signal_level for ALL detecting events, causing the frontend to replace the decode progress canvas with the signal monitor mid-decode. Fix: use None as default for signal_level so only signal-metrics events (which explicitly set the value) include the field. Also add a frontend guard to ignore detecting events while the UI is in decoding state. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -680,7 +680,14 @@ const SSTV = (function() {
|
||||
renderGallery();
|
||||
showNotification('SSTV', 'New image decoded!');
|
||||
updateStatusUI('listening', 'Listening...');
|
||||
// Clear decode progress so signal monitor can take over
|
||||
const liveContent = document.getElementById('sstvLiveContent');
|
||||
if (liveContent) liveContent.innerHTML = '';
|
||||
} else if (data.status === 'detecting') {
|
||||
// Ignore detecting events if currently decoding (e.g. Doppler updates)
|
||||
const dot = document.getElementById('sstvStripDot');
|
||||
if (dot && dot.classList.contains('decoding')) return;
|
||||
|
||||
updateStatusUI('listening', data.message || 'Listening...');
|
||||
if (data.signal_level !== undefined) {
|
||||
renderSignalMonitor(data);
|
||||
|
||||
Reference in New Issue
Block a user