spelling fixes
This commit is contained in:
parent
dcace073d9
commit
ac15376f6b
@ -68,7 +68,7 @@ void taskControl(void *pvParameters)
|
|||||||
{
|
{
|
||||||
vTaskDelay(PERIODIC_INTERVAL * 1000U / portTICK_PERIOD_MS);
|
vTaskDelay(PERIODIC_INTERVAL * 1000U / portTICK_PERIOD_MS);
|
||||||
|
|
||||||
// Handle safety faults
|
// Check for safety faults
|
||||||
if (getSafetyState() != SAFETY_NO_ERROR)
|
if (getSafetyState() != SAFETY_NO_ERROR)
|
||||||
{
|
{
|
||||||
ESP_LOGW(TAG, "Control not possible due to safety fault!");
|
ESP_LOGW(TAG, "Control not possible due to safety fault!");
|
||||||
@ -83,7 +83,7 @@ void taskControl(void *pvParameters)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle SNTP faults
|
// Check for SNTP faults
|
||||||
if (getSntpState() != SYNC_SUCCESSFUL)
|
if (getSntpState() != SYNC_SUCCESSFUL)
|
||||||
{
|
{
|
||||||
ESP_LOGW(TAG, "Control not possible due to SNTP fault!");
|
ESP_LOGW(TAG, "Control not possible due to SNTP fault!");
|
||||||
@ -98,7 +98,6 @@ void taskControl(void *pvParameters)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get current temperature entry
|
|
||||||
sControlTemperatureEntry currentControlEntry = getCurrentTemperatureEntry();
|
sControlTemperatureEntry currentControlEntry = getCurrentTemperatureEntry();
|
||||||
|
|
||||||
// Enable burner if outdoor temperature is low and return flow temperature is cooled down
|
// Enable burner if outdoor temperature is low and return flow temperature is cooled down
|
||||||
@ -124,7 +123,7 @@ void taskControl(void *pvParameters)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// ESP_LOGI(TAG, "Return flow temperature is still to warm: Disabling heating");
|
// ESP_LOGI(TAG, "Return flow temperature too warm: Disabling heating");
|
||||||
sControlState = CONTROL_RETURN_FLOW_TOO_WARM;
|
sControlState = CONTROL_RETURN_FLOW_TOO_WARM;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -146,7 +145,7 @@ void taskControl(void *pvParameters)
|
|||||||
{
|
{
|
||||||
if (getBurnerError() == FAULT)
|
if (getBurnerError() == FAULT)
|
||||||
{
|
{
|
||||||
// ESP_LOGI(TAG, "Burner fault detected after threshold!");
|
// ESP_LOGW(TAG, "Burner fault detected: Disabling burner");
|
||||||
bHeatingInAction = false;
|
bHeatingInAction = false;
|
||||||
eBurnerState = BURNER_FAULT;
|
eBurnerState = BURNER_FAULT;
|
||||||
sControlState = CONTROL_FAULT_BURNER;
|
sControlState = CONTROL_FAULT_BURNER;
|
||||||
@ -155,23 +154,23 @@ void taskControl(void *pvParameters)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// ESP_LOGI(TAG, "No Burner fault detected after threshold!");
|
// ESP_LOGI(TAG, "No burner fault detected: Marking burner as fired");
|
||||||
eBurnerState = BURNER_FIRED;
|
eBurnerState = BURNER_FIRED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle circulation pump state
|
// Manage circulation pump
|
||||||
if ((getReturnFlowTemperature().average60s.fValue <= currentControlEntry.fReturnFlowTemperature) &&
|
if ((getReturnFlowTemperature().average60s.fValue <= currentControlEntry.fReturnFlowTemperature) &&
|
||||||
(getChamberTemperature().fCurrentValue <= CHAMBER_TEMPERATURE_THRESHOLD))
|
(getChamberTemperature().fCurrentValue <= CHAMBER_TEMPERATURE_THRESHOLD))
|
||||||
{
|
{
|
||||||
// ESP_LOGI(TAG, "Burner is cooled down: Disable circulation pump");
|
// ESP_LOGI(TAG, "Burner cooled down: Disabling circulation pump");
|
||||||
setCirculationPumpState(DISABLED);
|
setCirculationPumpState(DISABLED);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// ESP_LOGI(TAG, "Burner is heated: Enable circulation pump");
|
// ESP_LOGI(TAG, "Burner heated: Enabling circulation pump");
|
||||||
setCirculationPumpState(ENABLED);
|
setCirculationPumpState(ENABLED);
|
||||||
}
|
}
|
||||||
} // End of while(1)
|
} // End of while(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user