From 95f597c9ed1f248d36977d9404dc1954ae9b87ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 4 May 2023 22:43:44 +0200 Subject: [PATCH] make soc overheat visible in log + raise top limit to 90C --- Core/Src/app_safety.c | 1 + Core/Src/app_temp.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/Src/app_safety.c b/Core/Src/app_safety.c index 2c600e0..0a79cc3 100644 --- a/Core/Src/app_safety.c +++ b/Core/Src/app_safety.c @@ -46,6 +46,7 @@ void app_safety_pass_soc_temp_ok() { } void app_safety_poll() { + PRINTF("\r\n*** HB FLAGS %x ***\r\n", heartbeat_flags); if ((heartbeat_flags & HB_FLAG_ALL) == HB_FLAG_ALL) { LL_IWDG_ReloadCounter(IWDG); LL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin); diff --git a/Core/Src/app_temp.c b/Core/Src/app_temp.c index 62336ee..049c6df 100644 --- a/Core/Src/app_temp.c +++ b/Core/Src/app_temp.c @@ -341,8 +341,10 @@ void app_temp_sample() app_safety_pass_temp_normal(); } - if (s_analog.soc_temp >= 2.0 && s_analog.soc_temp <= 80.0) { + if (s_analog.soc_temp >= 2.0 && s_analog.soc_temp <= 90.0) { app_safety_pass_soc_temp_ok(); + } else { + PRINTF("SOC OVERHEAT!! %f\r\n", s_analog.soc_temp); } }