mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
error handling in decoder.py
This commit is contained in:
parent
297f27c81c
commit
be9aa3b722
|
|
@ -4,7 +4,7 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
def decode(freq, decoded):
|
def decode(freq, decoded):
|
||||||
|
try:
|
||||||
#FMS Decoder Section
|
#FMS Decoder Section
|
||||||
#check FMS: -> check CRC -> validate -> check double alarm -> log
|
#check FMS: -> check CRC -> validate -> check double alarm -> log
|
||||||
if "FMS:" in decoded:
|
if "FMS:" in decoded:
|
||||||
|
|
@ -25,3 +25,6 @@ def decode(freq, decoded):
|
||||||
logging.debug("recieved POCSAG")
|
logging.debug("recieved POCSAG")
|
||||||
from includes.decoders import poc
|
from includes.decoders import poc
|
||||||
poc.decode(freq, decoded)
|
poc.decode(freq, decoded)
|
||||||
|
|
||||||
|
except:
|
||||||
|
logging.exception("cannot start decoder")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue