diff options
| author | tyustli <[email protected]> | 2022-12-19 17:25:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-19 17:25:35 +0800 |
| commit | e992ff46d24984a8e1143d6d6c1c5aba8c93266f (patch) | |
| tree | 18cab5ddb03ea683dd37bdbaf627669219f5517e /src | |
| parent | 7d76c172db2f45846c9db45ceed4d879be96296d (diff) | |
Update osal_rtthread.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/osal/osal_rtthread.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/osal/osal_rtthread.h b/src/osal/osal_rtthread.h index c0d6e91a1..18eb9c693 100644 --- a/src/osal/osal_rtthread.h +++ b/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); } //--------------------------------------------------------------------+ |
