Merge pull request #3227 from kasjer/kasjer/mynwet-spin-lock-fix

Fix osal_spin_unlock for mynewt
This commit is contained in:
Zixun LI
2025-08-26 20:34:50 +08:00
committed by GitHub

View File

@@ -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) { if (!TUP_MCU_MULTIPLE_CORE && in_isr) {
return; // single core MCU does not need to lock in ISR return; // single core MCU does not need to lock in ISR
} }
OS_ENTER_CRITICAL(*ctx); OS_EXIT_CRITICAL(*ctx);
} }
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+