mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-02-24 08:04:16 +01:00
Fixing string-search for ZVEI1
fixing location of zvei tones
This commit is contained in:
parent
88a4ae57ce
commit
a29a4412bc
|
|
@ -57,7 +57,7 @@ def decode(freq, decoded):
|
|||
@exception: Exception if ZVEI decode failed
|
||||
"""
|
||||
try:
|
||||
zvei_id = decoded[14:19] # ZVEI Code
|
||||
zvei_id = decoded[7:12] # ZVEI Code
|
||||
zvei_id = removeE(zvei_id) # remove E (repeated tone)
|
||||
if re.search("[0-9]{5}", zvei_id): # if ZVEI is valid
|
||||
# check for double alarm
|
||||
|
|
|
|||
Loading…
Reference in a new issue