mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/tinyusb: fix compilation with NDEBUG defined
This commit is contained in:
parent
945af26648
commit
ed585cfc22
@ -110,6 +110,7 @@ static inline bool osal_mutex_lock(osal_mutex_t mutex_hdl, uint32_t msec)
|
||||
|
||||
return mutex_lock_cancelable(&_mc) == 0;
|
||||
#else
|
||||
(void)msec;
|
||||
assert(msec == OSAL_TIMEOUT_WAIT_FOREVER);
|
||||
mutex_lock(mutex_hdl);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user