make soc overheat visible in log + raise top limit to 90C

This commit is contained in:
2023-05-04 22:43:44 +02:00
parent 39e143d186
commit 95f597c9ed
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -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);
+3 -1
View File
@@ -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);
}
}