Skip to content

Commit 12ee78d

Browse files
committed
Fix osal_spin_unlock for mynewt
Mynewt version for osal_spin_unlock() called OS_ENTER_CRITICAL instead of OS_EXIT_CRITICAL. Signed-off-by: Jerzy Kasenberg <[email protected]>
1 parent 5fb3c09 commit 12ee78d

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)