Przeglądaj źródła

Update osal_rtthread.h

tyustli 3 lat temu
rodzic
commit
e992ff46d2
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      src/osal/osal_rtthread.h

+ 1 - 2
src/osal/osal_rtthread.h

@@ -63,8 +63,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_wait(osal_semaphore_t se
 }
 
 TU_ATTR_ALWAYS_INLINE static inline void osal_semaphore_reset(osal_semaphore_t const sem_hdl) {
-    rt_ubase_t value = 0;
-    rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, &value);
+    rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, 0);
 }
 
 //--------------------------------------------------------------------+