Skip to content

Commit

Permalink
Fix misleading error messages in spin_lock.h
Browse files Browse the repository at this point in the history
(looks like this was a copy-paste mistake)
  • Loading branch information
lurch committed Mar 3, 2025
1 parent c7ff325 commit 0c3d758
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ typedef SW_SPIN_LOCK_TYPE spin_lock_t;
__mem_fence_acquire(); \
})
#else
#error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
#error no SW_SPIN_LOCK_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
#endif
#endif

Expand Down Expand Up @@ -210,7 +210,7 @@ typedef SW_SPIN_LOCK_TYPE spin_lock_t;
*(lock) = 0; /* write to spinlock register (release lock) */ \
})
#else
#error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
#error no SW_SPIN_LOCK_UNLOCK available for PICO_USE_SW_SPIN_LOCK on this platform
#endif
#endif

Expand Down

0 comments on commit 0c3d758

Please sign in to comment.