mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-04 23:59:58 +01:00
some changes on decoder
This commit is contained in:
parent
3b7847a515
commit
960f2c48f0
|
|
@ -31,7 +31,6 @@ class Decoder:
|
|||
|
||||
@param data: data to decode
|
||||
@return bwPacket instance"""
|
||||
logging.debug("search decoder")
|
||||
data = str(data)
|
||||
if "FMS" in data:
|
||||
return FmsDecoder.decode(data)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class FmsDecoder:
|
|||
|
||||
return bwPacket
|
||||
|
||||
logging.warning("no valid data")
|
||||
logging.warning("no valid FMS")
|
||||
return None
|
||||
logging.warning("CRC Error")
|
||||
return None
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class PocsagDecoder:
|
|||
|
||||
return bwPacket
|
||||
|
||||
logging.warning("no valid data")
|
||||
logging.warning("no valid POCSAG")
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class ZveiDecoder:
|
|||
|
||||
return bwPacket
|
||||
|
||||
logging.warning("no valid data")
|
||||
logging.warning("no valid ZVEI")
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Reference in a new issue