gomspace temperatures now float

This commit is contained in:
Jakob Meier 2022-06-03 09:33:34 +02:00
parent e2de2e0212
commit 64a1ffa1f3

View File

@ -36,7 +36,7 @@ def handle_thermal_controller_hk_data(
pw = PrintWrapper(printer) pw = PrintWrapper(printer)
pw.dlog("Received device temperature data") pw.dlog("Received device temperature data")
fmt_str = "!fffffiiiiffffhhhhhhhfffffff" fmt_str = "!fffffiiiiffffffffffffffffff"
tm_data = struct.unpack(fmt_str, hk_data[:90]) tm_data = struct.unpack(fmt_str, hk_data[:90])
parsed_data = { parsed_data = {
"Q7S_TEMPERATURE": tm_data[0], "Q7S_TEMPERATURE": tm_data[0],