summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2025-08-26 20:34:50 +0800
committerGitHub <[email protected]>2025-08-26 20:34:50 +0800
commite36dab39290e747e125250c7383e1108575f15c3 (patch)
tree64346f504d1a957e61020fb5a82b67dab2fd811f /src
parent5fb3c09963bca362e535788e289d4b3518da5973 (diff)
parent12ee78df308aa80d6c2ef34bff1be0df38939027 (diff)
Merge pull request #3227 from kasjer/kasjer/mynwet-spin-lock-fix
Fix osal_spin_unlock for mynewt
Diffstat (limited to 'src')
-rw-r--r--src/osal/osal_mynewt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osal/osal_mynewt.h b/src/osal/osal_mynewt.h
index ee95e684f..6d51f8ec3 100644
--- a/src/osal/osal_mynewt.h
+++ b/src/osal/osal_mynewt.h
@@ -63,7 +63,7 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_spin_unlock(osal_spinlock_t *ctx,
if (!TUP_MCU_MULTIPLE_CORE && in_isr) {
return; // single core MCU does not need to lock in ISR
}
- OS_ENTER_CRITICAL(*ctx);
+ OS_EXIT_CRITICAL(*ctx);
}
//--------------------------------------------------------------------+