Skip to content

Commit e36dab3

Browse files
authored
Merge pull request hathach#3227 from kasjer/kasjer/mynwet-spin-lock-fix
Fix osal_spin_unlock for mynewt
2 parents 5fb3c09 + 12ee78d commit e36dab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osal/osal_mynewt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_spin_unlock(osal_spinlock_t *ctx,
6363
if (!TUP_MCU_MULTIPLE_CORE && in_isr) {
6464
return; // single core MCU does not need to lock in ISR
6565
}
66-
OS_ENTER_CRITICAL(*ctx);
66+
OS_EXIT_CRITICAL(*ctx);
6767
}
6868

6969
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)