From e5739bc2d47671a25048fd09c8dde93757fec05c Mon Sep 17 00:00:00 2001 From: Kilian Bracher Date: Fri, 6 Jun 2025 01:09:50 +0200 Subject: [PATCH] fix signedness of min/max pack temp should fix max temp always being -32678, whoops --- AMS_Master_Code/Core/Inc/battery.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMS_Master_Code/Core/Inc/battery.h b/AMS_Master_Code/Core/Inc/battery.h index 575f924..288b12f 100644 --- a/AMS_Master_Code/Core/Inc/battery.h +++ b/AMS_Master_Code/Core/Inc/battery.h @@ -18,8 +18,8 @@ extern struct { float soc; uint16_t min_voltage; uint16_t max_voltage; - uint16_t min_temp; - uint16_t max_temp; + int16_t min_temp; + int16_t max_temp; } pack; struct { BMS_Chip * chip;