Skip to content

Commit 52ec9ec

Browse files
committed
downgrade hard_assert to assert
1 parent 44527b4 commit 52ec9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rp2_common/pico_async_context/async_context_threadsafe_background.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ uint32_t async_context_threadsafe_background_execute_sync(async_context_t *self_
145145
// Note that this read of the owner is not synchronized with the other core; however we only
146146
// care about it being set to `calling_core`, which the other core will not transition
147147
// it either from or to.
148-
hard_assert(recursive_mutex_owner(&self->lock_mutex) != lock_get_caller_owner_id());
148+
assert(recursive_mutex_owner(&self->lock_mutex) != lock_get_caller_owner_id());
149149
sync_func_call_t call = {0};
150150
call.worker.do_work = handle_sync_func_call;
151151
call.func = func;

0 commit comments

Comments
 (0)