Fix bug in aprs id generation

pull/741/head
Mark Jessop 2022-12-31 09:05:23 +10:30
rodzic 68a3a29669
commit 8c7cc6a160
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -285,7 +285,7 @@ def generate_aprs_id(sonde_data):
_id_hex = hex(_id_suffix).upper()
_object_name = "LMS6" + _id_hex[-5:]
elif "MEISEI" in sonde_data["type"] or "IMS100" in telemetry["type"] or "RS11G" in telemetry["type"]:
elif "MEISEI" in sonde_data["type"] or "IMS100" in sonde_data["type"] or "RS11G" in sonde_data["type"]:
# Convert the serial number to an int
_meisei_id = int(sonde_data["id"].split("-")[-1])
_id_suffix = hex(_meisei_id).upper().split("0X")[1]