mirror of
https://github.com/smittix/intercept.git
synced 2026-07-17 05:48:11 -07:00
Sync monitor state text with tuned waterfall frequency
This commit is contained in:
@@ -2535,6 +2535,12 @@ const Waterfall = (function () {
|
|||||||
}
|
}
|
||||||
_updateFreqDisplay();
|
_updateFreqDisplay();
|
||||||
_setStatus(`Tuned ${_monitorFreqMhz.toFixed(4)} MHz`);
|
_setStatus(`Tuned ${_monitorFreqMhz.toFixed(4)} MHz`);
|
||||||
|
if (_monitoring && _monitorSource === 'waterfall') {
|
||||||
|
const mode = _getMonitorMode().toUpperCase();
|
||||||
|
_setMonitorState(`Monitoring ${_monitorFreqMhz.toFixed(4)} MHz ${mode} via shared IQ`);
|
||||||
|
_setStatus(`Audio monitor active on ${_monitorFreqMhz.toFixed(4)} MHz (${mode})`);
|
||||||
|
_setVisualStatus('MONITOR');
|
||||||
|
}
|
||||||
if (!_monitoring) _setVisualStatus('RUNNING');
|
if (!_monitoring) _setVisualStatus('RUNNING');
|
||||||
} else if (_onRetuneRequired(msg)) {
|
} else if (_onRetuneRequired(msg)) {
|
||||||
return;
|
return;
|
||||||
@@ -2786,10 +2792,14 @@ const Waterfall = (function () {
|
|||||||
_setUnlockVisible(false);
|
_setUnlockVisible(false);
|
||||||
_audioUnlockRequired = false;
|
_audioUnlockRequired = false;
|
||||||
|
|
||||||
_setMonitorState(
|
if (retuneOnly && _monitoring) {
|
||||||
`Starting ${centerMhz.toFixed(4)} MHz ${mode.toUpperCase()} on `
|
_setMonitorState(`Retuning ${centerMhz.toFixed(4)} MHz ${mode.toUpperCase()}...`);
|
||||||
+ `${monitorDevice.sdrType.toUpperCase()} #${monitorDevice.deviceIndex}...`
|
} else {
|
||||||
);
|
_setMonitorState(
|
||||||
|
`Starting ${centerMhz.toFixed(4)} MHz ${mode.toUpperCase()} on `
|
||||||
|
+ `${monitorDevice.sdrType.toUpperCase()} #${monitorDevice.deviceIndex}...`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Use live _monitorFreqMhz for retunes so that any user
|
// Use live _monitorFreqMhz for retunes so that any user
|
||||||
// clicks that changed the VFO during the async setup are
|
// clicks that changed the VFO during the async setup are
|
||||||
@@ -2831,7 +2841,13 @@ const Waterfall = (function () {
|
|||||||
// If the backend still reports stale after token resync,
|
// If the backend still reports stale after token resync,
|
||||||
// schedule a fresh retune so monitor audio does not stay on
|
// schedule a fresh retune so monitor audio does not stay on
|
||||||
// an older station indefinitely.
|
// an older station indefinitely.
|
||||||
if (_monitoring) _queueMonitorRetune(90);
|
if (_monitoring) {
|
||||||
|
const liveMode = _getMonitorMode().toUpperCase();
|
||||||
|
_setMonitorState(`Monitoring ${_monitorFreqMhz.toFixed(4)} MHz ${liveMode}`);
|
||||||
|
_setStatus(`Audio monitor active on ${_monitorFreqMhz.toFixed(4)} MHz (${liveMode})`);
|
||||||
|
_setVisualStatus('MONITOR');
|
||||||
|
_queueMonitorRetune(90);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const busy = payload?.error_type === 'DEVICE_BUSY' || (response.status === 409 && !staleStart);
|
const busy = payload?.error_type === 'DEVICE_BUSY' || (response.status === 409 && !staleStart);
|
||||||
|
|||||||
Reference in New Issue
Block a user