Log only interesting listening signals

This commit is contained in:
Smittix
2026-02-04 11:37:15 +00:00
parent 77888b7d88
commit 812f85b9a9

View File

@@ -615,6 +615,15 @@ function handleFrequencyUpdate(data) {
}
function handleSignalFound(data) {
// Only treat signals as "interesting" if they exceed threshold and match modulation
const threshold = data.threshold !== undefined ? data.threshold : signalLevelThreshold;
if (data.level !== undefined && threshold !== undefined && data.level < threshold) {
return;
}
if (data.modulation && currentModulation && data.modulation !== currentModulation) {
return;
}
scannerSignalCount++;
scannerSignalActive = true;
const freqStr = data.frequency.toFixed(3);