Merge branch 'change-from-python-to-python3' of https://github.com/woehrer12/BOSWatch into change-from-python-to-python3

This commit is contained in:
Julian Wöhrer 2022-01-02 01:01:12 +01:00
commit b71b7e166f

View file

@ -111,13 +111,13 @@ def decode(freq, decoded):
elif "POCSAG1200:" in decoded:
bitrate = 1200
poc_id = decoded[21:28].replace(" ", "").zfill(7)
poc_sub = str(int(decoded[40])+1)
poc_id = decoded[23:30].replace(" ", "").zfill(7)
poc_sub = str(int(decoded[42])+1)
elif "POCSAG2400:" in decoded:
bitrate = 2400
poc_id = decoded[21:28].replace(" ", "").zfill(7)
poc_sub = str(int(decoded[40])+1)
poc_id = decoded[23:30].replace(" ", "").zfill(7)
poc_sub = str(int(decoded[42])+1)
if bitrate == 0:
logging.warning("POCSAG Bitrate not found")