Skip to content

Commit 26ab4be

Browse files
authored
Fix misleading error messages in spin_lock.h (#2326)
(looks like this was a copy-paste mistake)
1 parent c7ff325 commit 26ab4be

File tree

1 file changed

+2
-2
lines changed
  • src/rp2_common/hardware_sync_spin_lock/include/hardware/sync

1 file changed

+2
-2
lines changed

src/rp2_common/hardware_sync_spin_lock/include/hardware/sync/spin_lock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ typedef SW_SPIN_LOCK_TYPE spin_lock_t;
149149
__mem_fence_acquire(); \
150150
})
151151
#else
152-
#error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
152+
#error no SW_SPIN_LOCK_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
153153
#endif
154154
#endif
155155

@@ -210,7 +210,7 @@ typedef SW_SPIN_LOCK_TYPE spin_lock_t;
210210
*(lock) = 0; /* write to spinlock register (release lock) */ \
211211
})
212212
#else
213-
#error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
213+
#error no SW_SPIN_LOCK_UNLOCK available for PICO_USE_SW_SPIN_LOCK on this platform
214214
#endif
215215
#endif
216216

0 commit comments

Comments
 (0)