Fix misleading error messages in spin_lock.h (#2326)

(looks like this was a copy-paste mistake)
This commit is contained in:
Andrew Scheller 2025-03-03 17:21:16 +00:00 committed by GitHub
parent c7ff325fb3
commit 26ab4be834
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
@ -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