Skip to content

Commit 4cc1efa

Browse files
committed
fixup debug build
1 parent d131919 commit 4cc1efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/pico_sync/mutex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool __time_critical_func(mutex_enter_block_until)(mutex_t *mtx, absolute_time_t
7272

7373
void __time_critical_func(mutex_exit)(mutex_t *mtx) {
7474
uint32_t save = spin_lock_blocking(mtx->core.spin_lock);
75-
assert(mtx->owned);
75+
assert(mtx->owner >= 0);
7676
mtx->owner = -1;
7777
__sev();
7878
spin_unlock(mtx->core.spin_lock, save);

0 commit comments

Comments
 (0)