cooling/cooling.cc
/// Turn the fan on or off based on cpu temperature.
///
Turn the fan on or off based on cpu temperature.
Turn the fan on or off based on cpu temperature .
void Cooling::control_temp()
{
    double cpu_temp = get_cpu_temp();
    if ((cpu_temp > m_cool_start_temp) && ! m_fan_running) {
        start_fan();
    }
    else if ((cpu_temp < m_cool_stop_temp) && m_fan_running) {
        stop_fan();
    }
}
void Cooling :: control_temp ( ) { double cpu_temp = get_cpu_temp ( ) ; if ( ( cpu_temp > m_cool_start_temp ) && ! m_fan_running ) { start_fan ( ) ; } else if ( ( cpu_temp < m_cool_stop_temp ) && m_fan_running ) { stop_fan ( ) ; } }
Turn the fan on or off based on cpu temperature.
Turn the fan on or off based on cpu temperature .