diff options
| author | Jerzy Kasenberg <[email protected]> | 2025-08-24 17:19:51 +0200 |
|---|---|---|
| committer | Jerzy Kasenberg <[email protected]> | 2025-08-24 17:19:51 +0200 |
| commit | 12ee78df308aa80d6c2ef34bff1be0df38939027 (patch) | |
| tree | 64346f504d1a957e61020fb5a82b67dab2fd811f /src/osal | |
| parent | 5fb3c09963bca362e535788e289d4b3518da5973 (diff) | |
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]>
Diffstat (limited to 'src/osal')
| -rw-r--r-- | src/osal/osal_mynewt.h | 2 |
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); } //--------------------------------------------------------------------+ |
