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

master
Ondřej Hruška 2 years ago
parent 39e143d186
commit 95f597c9ed
  1. 1
      Core/Src/app_safety.c
  2. 4
      Core/Src/app_temp.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);

@ -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);
}
}

Loading…
Cancel
Save