kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Fix bug in aprs id generation
rodzic
68a3a29669
commit
8c7cc6a160
|
@ -285,7 +285,7 @@ def generate_aprs_id(sonde_data):
|
||||||
_id_hex = hex(_id_suffix).upper()
|
_id_hex = hex(_id_suffix).upper()
|
||||||
_object_name = "LMS6" + _id_hex[-5:]
|
_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
|
# Convert the serial number to an int
|
||||||
_meisei_id = int(sonde_data["id"].split("-")[-1])
|
_meisei_id = int(sonde_data["id"].split("-")[-1])
|
||||||
_id_suffix = hex(_meisei_id).upper().split("0X")[1]
|
_id_suffix = hex(_meisei_id).upper().split("0X")[1]
|
||||||
|
|
Ładowanie…
Reference in New Issue