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")
|
||||
|
||||
@staticmethod
|
||||
def decode(self, data):
|
||||
def decode(data):
|
||||
"""!Decodes FMS
|
||||
|
||||
@param data: FMS for decoding
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class Pocsag:
|
|||
logging.debug("POCSAG decoder started")
|
||||
|
||||
@staticmethod
|
||||
def decode(self, data):
|
||||
def decode(data):
|
||||
"""!Decodes POCSAG
|
||||
|
||||
@param data: POCSAG for decoding
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class Zvei:
|
|||
logging.debug("ZVEI decoder started")
|
||||
|
||||
@staticmethod
|
||||
def decode(self, data):
|
||||
def decode(data):
|
||||
"""!Decodes ZVEI
|
||||
|
||||
@param data: ZVEI for decoding
|
||||
|
|
@ -46,7 +46,7 @@ class Zvei:
|
|||
|
||||
bwPacket = packet.Packet()
|
||||
bwPacket.setField("mode", "zvei")
|
||||
bwPacket.setField("zvei", self._solveDoubleTone(data[7:12]))
|
||||
bwPacket.setField("zvei", Zvei._solveDoubleTone(data[7:12]))
|
||||
|
||||
logging.debug(bwPacket)
|
||||
return bwPacket
|
||||
|
|
|
|||
Loading…
Reference in a new issue