Fixed recursive LockHelper

This commit is contained in:
2021-09-06 17:47:54 +02:00
parent 6cd32b5193
commit b8097c25d6

View File

@ -13,7 +13,7 @@ class RecursiveLockHelper
CPP_DISABLE_COPY_MOVE(RecursiveLockHelper)
public:
RecursiveLockHelper(SemaphoreHandle_t _xMutex, TickType_t xTicksToWait = portMAX_DELAY) :
RecursiveLockHelper(SemaphoreHandle_t xMutex, TickType_t xTicksToWait = portMAX_DELAY) :
m_xMutex{xMutex},
m_locked{xSemaphoreTakeRecursive(xMutex, xTicksToWait) == pdPASS}
{}