From aacf39a32c62a708f74012cd6a7b62745aa9d706 Mon Sep 17 00:00:00 2001 From: dario Date: Tue, 2 Jan 2024 11:48:52 +0100 Subject: [PATCH] Changed mutex constructor to properly use the provided name --- src/mutex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mutex.cpp b/src/mutex.cpp index 8252d7e..854b356 100644 --- a/src/mutex.cpp +++ b/src/mutex.cpp @@ -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);