sempahore wrapper extended

This commit is contained in:
2020-02-25 17:04:21 +01:00
parent 685c18dc4e
commit 083cc7c50a
9 changed files with 204 additions and 25 deletions

View File

@ -37,8 +37,7 @@ ReturnValue_t Mutex::lockMutex(uint32_t timeoutMs) {
ReturnValue_t Mutex::unlockMutex() {
if (handle == 0) {
//TODO Does not exist
return HasReturnvaluesIF::RETURN_FAILED;
return MutexIF::MUTEX_NOT_FOUND;
}
BaseType_t returncode = xSemaphoreGive(handle);
if (returncode == pdPASS) {