Changed mutex constructor to properly use the provided name

This commit is contained in:
dario 2024-01-02 11:48:52 +01:00
parent 08fec8e3e9
commit aacf39a32c

View File

@ -11,7 +11,7 @@ namespace sta
RtosMutex::RtosMutex(const char* name)
{
osMutexAttr_t attribs = { .name = "uartMutex"};
osMutexAttr_t attribs = { .name = name};
handle_ = osMutexNew(&attribs);
STA_ASSERT(handle_ != NULL);