Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu/esp32/freertos/semphr.c::xSemaphoreTakeRecursive() return value fix
xSemaphoreTakeRecursive() returned before the fix: pdFALSE(equal to pdFAIL) when the call was successful in obtaining the semaphore and pdTRUE(equal to pdPASS) when the call did not successfully obtain the semaphore. According to freertos documentation: "pdPASS Returned only if the call to xSemaphoreTakeRecursive() was successful in obtaining the semaphore" "pdFAIL Returned if the call to xSemaphoreTakeRecursive() did not successfully obtain the semaphore." Fixed it to return the correct value.
- Loading branch information