use damped value as event source
This commit is contained in:
@ -102,11 +102,11 @@ void taskControl(void *pvParameters)
|
||||
|
||||
sControlTemperatureEntry currentControlEntry = getControlCurrentTemperatureEntry();
|
||||
|
||||
if (getOutdoorTemperature().average60s.fValue >= SUMMER_MODE_TEMPERATURE_THRESHOLD_HIGH)
|
||||
if (getOutdoorTemperature().fDampedValue >= SUMMER_MODE_TEMPERATURE_THRESHOLD_HIGH)
|
||||
{
|
||||
bSummerMode = true;
|
||||
}
|
||||
else if (getOutdoorTemperature().average60s.fValue <= SUMMER_MODE_TEMPERATURE_THRESHOLD_LOW)
|
||||
else if (getOutdoorTemperature().fDampedValue <= SUMMER_MODE_TEMPERATURE_THRESHOLD_LOW)
|
||||
{
|
||||
bSummerMode = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user