mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
fix error in decoder
This commit is contained in:
parent
881615dcce
commit
b5b5562a5d
|
|
@ -35,7 +35,7 @@ class Fms:
|
||||||
logging.debug("FMS decoder started")
|
logging.debug("FMS decoder started")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def decode(self, data):
|
def decode(data):
|
||||||
"""!Decodes FMS
|
"""!Decodes FMS
|
||||||
|
|
||||||
@param data: FMS for decoding
|
@param data: FMS for decoding
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ class Pocsag:
|
||||||
logging.debug("POCSAG decoder started")
|
logging.debug("POCSAG decoder started")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def decode(self, data):
|
def decode(data):
|
||||||
"""!Decodes POCSAG
|
"""!Decodes POCSAG
|
||||||
|
|
||||||
@param data: POCSAG for decoding
|
@param data: POCSAG for decoding
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class Zvei:
|
||||||
logging.debug("ZVEI decoder started")
|
logging.debug("ZVEI decoder started")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def decode(self, data):
|
def decode(data):
|
||||||
"""!Decodes ZVEI
|
"""!Decodes ZVEI
|
||||||
|
|
||||||
@param data: ZVEI for decoding
|
@param data: ZVEI for decoding
|
||||||
|
|
@ -46,7 +46,7 @@ class Zvei:
|
||||||
|
|
||||||
bwPacket = packet.Packet()
|
bwPacket = packet.Packet()
|
||||||
bwPacket.setField("mode", "zvei")
|
bwPacket.setField("mode", "zvei")
|
||||||
bwPacket.setField("zvei", self._solveDoubleTone(data[7:12]))
|
bwPacket.setField("zvei", Zvei._solveDoubleTone(data[7:12]))
|
||||||
|
|
||||||
logging.debug(bwPacket)
|
logging.debug(bwPacket)
|
||||||
return bwPacket
|
return bwPacket
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue