feature/temperature-predict #16

Merged
localhorst merged 16 commits from feature/temperature-predict into main 2024-12-26 19:12:21 +01:00
Showing only changes of commit 795223ff66 - Show all commits
+12 -1
View File
@@ -155,5 +155,16 @@ void getSensorSanityStates(sSensorSanityCheck *pSensorSanityChecks)
eSafetyState getSafetyState(void)
{
return sSafetyState;
eSafetyState state = SAFETY_NO_ERROR;
if (xSemaphoreTakeRecursive(xMutexAccessSafety, pdMS_TO_TICKS(5000)) == pdTRUE)
{
state = sSafetyState;
xSemaphoreGiveRecursive(xMutexAccessSafety);
}
else
{
state = SAFETY_INTERNAL_ERROR;
ESP_LOGE(TAG, "Unable to take mutex: getSafetyState()");
}
return state;
}