format string of device temperatures
This commit is contained in:
parent
46be9fa092
commit
6cae7f742c
@ -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
@ -1 +1 @@
|
||||
Subproject commit 03b70906a60e3f34c3a9f654970c611f7ea264fd
|
||||
Subproject commit 6914cfaaf6fbdb7b5623a1fc9e5a909b11fb2acb
|
Loading…
Reference in New Issue
Block a user