mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-21 15:50:20 +01:00
Issue #44
This commit is contained in:
parent
02b53930cf
commit
e31ab65911
|
|
@ -101,7 +101,7 @@ def decode(freq, decoded):
|
|||
else:
|
||||
poc_text = ""
|
||||
|
||||
if re.search("[0-9]{7}", poc_id): #if POC is valid
|
||||
if re.search("[0-9]{7}", poc_id) and re.search("[0-3]{1}", poc_sub): #if POC is valid
|
||||
if isAllowed(poc_id):
|
||||
# check for double alarm
|
||||
if doubleFilter.checkID("POC", poc_id+poc_sub, poc_text):
|
||||
|
|
@ -126,4 +126,4 @@ def decode(freq, decoded):
|
|||
else:
|
||||
logging.debug("POCSAG%s: %s is not allowed", bitrate, poc_id)
|
||||
else:
|
||||
logging.warning("No valid POCSAG%s RIC: %s", bitrate, poc_id)
|
||||
logging.warning("No valid POCSAG%s RIC: %s SUB: %s", bitrate, poc_id, poc_sub)
|
||||
|
|
|
|||
2
testdata/testdata.txt
vendored
2
testdata/testdata.txt
vendored
|
|
@ -73,7 +73,7 @@ POCSAG512: Address: 333333 Function: 0 Alpha: BOSWatch-Test: okay
|
|||
POCSAG512: Address: 3333333 Function: 0 Alpha: BOSWatch-Test: okay
|
||||
POCSAG512: Address: 333333F Function: 0 Alpha: BOSWatch-Test: invalid
|
||||
POCSAG512: Address: 333333F Function: 1 Alpha: BOSWatch-Test: invalid
|
||||
POCSAG512: Address: 3333333 Function: 4 Alpha: BOSWatch-Test: invalid (issue #38)
|
||||
POCSAG512: Address: 3333333 Function: 4 Alpha: BOSWatch-Test: invalid
|
||||
|
||||
# denied
|
||||
POCSAG1200: Address: 7777777 Function: 1 Alpha: BOSWatch-Test: denied
|
||||
|
|
|
|||
Loading…
Reference in a new issue