mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-02-11 01:34:15 +01:00
fix position problem in poc.py
This commit is contained in:
parent
8008c5ff9f
commit
0a0f177b77
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue