mirror of
https://github.com/smittix/intercept.git
synced 2026-07-14 12:38:11 -07:00
Log only interesting listening signals
This commit is contained in:
@@ -615,6 +615,15 @@ function handleFrequencyUpdate(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleSignalFound(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++;
|
scannerSignalCount++;
|
||||||
scannerSignalActive = true;
|
scannerSignalActive = true;
|
||||||
const freqStr = data.frequency.toFixed(3);
|
const freqStr = data.frequency.toFixed(3);
|
||||||
|
|||||||
Reference in New Issue
Block a user