From 5c5bc3678a69e218fddf23b67edcec36ac6446a2 Mon Sep 17 00:00:00 2001 From: "Jasper v. Blanckenburg" Date: Sat, 18 Mar 2023 18:46:02 +0100 Subject: [PATCH] Temperature is 12-bit --- Core/Src/can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Src/can.c b/Core/Src/can.c index 7ad3387..2e95105 100644 --- a/Core/Src/can.c +++ b/Core/Src/can.c @@ -24,7 +24,7 @@ HAL_StatusTypeDef can_send_status() { data[0] = ts_state.current_state; data[1] = current_soc; data[2] = min_voltage >> 8; - data[3] = max_temp >> 8; + data[3] = max_temp >> 4; return ftcan_transmit(CAN_ID_AMS_STATUS, data, 4); }