Need to give semaphore after creation.

This commit is contained in:
rotorman
2021-07-31 17:31:50 +02:00
committed by Raphael Coeffic
parent 421d19bc6b
commit 8c14b80c69
+1
View File
@@ -222,6 +222,7 @@ template<int SIZE>
static inline void RTOS_CREATE_MUTEX(RTOS_MUTEX_HANDLE& h)
{
h.rtos_handle = xSemaphoreCreateBinaryStatic(&h.mutex_struct);
xSemaphoreGive(h.rtos_handle);
}
static inline void RTOS_LOCK_MUTEX(RTOS_MUTEX_HANDLE& h)