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