Skip to content

Commit

Permalink
pkg/tinyusb: fix compilation with NDEBUG defined
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Nov 30, 2022
1 parent 59c238b commit 89ca3ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/tinyusb/contrib/include/tusb_os_custom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 89ca3ea

Please # to comment.