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