summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-11-28 14:57:44 -0500
committerGalen Guyer <galen@galenguyer.com>2022-11-28 14:57:44 -0500
commit5e9223919249f46763048557361a849cbd0224d5 (patch)
treef781697fb6a10bc96e11669176b0344f5f7fd93a
parent20814daa780a5e96ed312caf327b2a19306ce3ab (diff)
Ignore any audio from a talkgroup with priority -1
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 446c8b3..4313956 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -141,6 +141,9 @@ fn main() {
.get(&tg)
.map(|tg| tg.to_owned())
.unwrap_or(TalkGroup::unknown(tg));
+ if curr_tg.priority == -1 {
+ continue;
+ }
let audio_bytes = &filled_buf[4..];
match &listening_tg {