Error handling on system boot #30

Merged
localhorst merged 22 commits from feature/error-handling into main 2026-05-10 12:39:47 +02:00
Showing only changes of commit 267197ec20 - Show all commits
+11 -1
View File
@@ -55,7 +55,17 @@ void initOutputs(void)
eOutput getCirculationPumpState(void)
{
return sCirculationPumpState;
eOutput ret = ENABLED;
if (xSemaphoreTakeRecursive(xMutexAccessOutputs, pdMS_TO_TICKS(5000)) == pdTRUE)
{
ret = sCirculationPumpState;
xSemaphoreGiveRecursive(xMutexAccessOutputs);
}
else
{
ESP_LOGE(TAG, "Unable to take mutex: getCirculationPumpState()");
}
return ret;
}
void setCirculationPumpState(eOutput in)