From 54be4372bb596419370541e9a5f540c588d5dfeb Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 31 Oct 2021 13:12:30 +0000 Subject: [PATCH] check if call type is unit first --- bridge_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index 692f4a5..6f9ff13 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -1792,7 +1792,7 @@ class routerHBP(HBSYSTEM): ## print(ahex(dmrpkt)[27:-27]) ## print() # Filter out SMS/GPS. Usually _dtype_vseq of 3, 6, and 7. - if (_dtype_vseq == 6 or _dtype_vseq == 7) or (ahex(dmrpkt)[27:-27] == b'd5d7f77fd757' and _dtype_vseq == 3) and _call_type == 'unit': + if _ call_type == 'unit' and (_dtype_vseq == 6 or _dtype_vseq == 7) or (ahex(dmrpkt)[27:-27] == b'd5d7f77fd757' and _dtype_vseq == 3): ## if ahex(dmrpkt)[27:-27] == b'd5d7f77fd757': # This is a data call _data_call = True