format string of device temperatures
This commit is contained in:
@ -35,8 +35,8 @@ def handle_thermal_controller_hk_data(
|
||||
elif set_id == SetIds.DEVICE_TEMPERATURE_SET:
|
||||
pw = PrintWrapper(printer)
|
||||
pw.dlog("Received device temperature data")
|
||||
fmt_str = "!fffffiiiiffffffffffffffffff"
|
||||
tm_data = struct.unpack(fmt_str, hk_data[:90])
|
||||
fmt_str = "!fhhhhiiiifHHHffffffffffffff"
|
||||
tm_data = struct.unpack(fmt_str, hk_data[:94])
|
||||
parsed_data = {
|
||||
"Q7S_TEMPERATURE": tm_data[0],
|
||||
"BATTERY_TEMPERATURE_1": tm_data[1],
|
||||
|
2
tmtccmd
2
tmtccmd
Submodule tmtccmd updated: 03b70906a6...6914cfaaf6
Reference in New Issue
Block a user