From 6cae7f742c5a741cb203d0212621bdf3aba7cb84 Mon Sep 17 00:00:00 2001 From: Cleanroom Laptop L15 Date: Fri, 3 Jun 2022 10:35:12 +0200 Subject: [PATCH] format string of device temperatures --- pus_tm/system/tcs.py | 4 ++-- tmtccmd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pus_tm/system/tcs.py b/pus_tm/system/tcs.py index 9c18cf3..8a07a6f 100644 --- a/pus_tm/system/tcs.py +++ b/pus_tm/system/tcs.py @@ -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], diff --git a/tmtccmd b/tmtccmd index 03b7090..6914cfa 160000 --- a/tmtccmd +++ b/tmtccmd @@ -1 +1 @@ -Subproject commit 03b70906a60e3f34c3a9f654970c611f7ea264fd +Subproject commit 6914cfaaf6fbdb7b5623a1fc9e5a909b11fb2acb