void safety_SetCondition ( E_SAFETY_CONDITION  eCond )

If a temperature error condition is set, the fan will be activated.

Parameters:
eCondE_SAFETY_CONDITION condition to be set.
Returns:
void

Definition at line 126 of file safety.c.

References COND_TEMP_ERR, fan_Set(), mg_eCondition, and ON.

Referenced by current_Update(), current_UpdateSum(), temp_Check(), and voltage_UpdateAvg().

{
  mg_eCondition |= eCond;
  
  if((mg_eCondition & COND_TEMP_ERR) != 0U)
  {
    fan_Set(ON);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function: