From ac15376f6b8d47c72c9014f05a01225deb07c4102fb79045e401b604442ef57e Mon Sep 17 00:00:00 2001 From: localhorst Date: Fri, 25 Apr 2025 21:52:31 +0200 Subject: [PATCH] spelling fixes --- main/control.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/main/control.c b/main/control.c index f140917..02d0ebc 100644 --- a/main/control.c +++ b/main/control.c @@ -68,7 +68,7 @@ void taskControl(void *pvParameters) { vTaskDelay(PERIODIC_INTERVAL * 1000U / portTICK_PERIOD_MS); - // Handle safety faults + // Check for safety faults if (getSafetyState() != SAFETY_NO_ERROR) { ESP_LOGW(TAG, "Control not possible due to safety fault!"); @@ -83,7 +83,7 @@ void taskControl(void *pvParameters) continue; } - // Handle SNTP faults + // Check for SNTP faults if (getSntpState() != SYNC_SUCCESSFUL) { ESP_LOGW(TAG, "Control not possible due to SNTP fault!"); @@ -98,7 +98,6 @@ void taskControl(void *pvParameters) continue; } - // Get current temperature entry sControlTemperatureEntry currentControlEntry = getCurrentTemperatureEntry(); // Enable burner if outdoor temperature is low and return flow temperature is cooled down @@ -124,7 +123,7 @@ void taskControl(void *pvParameters) } 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; } } @@ -146,7 +145,7 @@ void taskControl(void *pvParameters) { if (getBurnerError() == FAULT) { - // ESP_LOGI(TAG, "Burner fault detected after threshold!"); + // ESP_LOGW(TAG, "Burner fault detected: Disabling burner"); bHeatingInAction = false; eBurnerState = BURNER_FAULT; sControlState = CONTROL_FAULT_BURNER; @@ -155,23 +154,23 @@ void taskControl(void *pvParameters) } else { - // ESP_LOGI(TAG, "No Burner fault detected after threshold!"); + // ESP_LOGI(TAG, "No burner fault detected: Marking burner as fired"); eBurnerState = BURNER_FIRED; } } } } - // Handle circulation pump state + // Manage circulation pump if ((getReturnFlowTemperature().average60s.fValue <= currentControlEntry.fReturnFlowTemperature) && (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); } else { - // ESP_LOGI(TAG, "Burner is heated: Enable circulation pump"); + // ESP_LOGI(TAG, "Burner heated: Enabling circulation pump"); setCirculationPumpState(ENABLED); } } // End of while(1)