Skip to content

Commit 537ccfd

Browse files
committed
fix(osal/usb_osal_rtthread): up version to v5.2.0 to use RT_SCHED_PRIV(self).current_priority
Signed-off-by: sakumisu <[email protected]>
1 parent 6973ec7 commit 537ccfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osal/usb_osal_rtthread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void usb_osal_thread_schedule_other(void)
3838
{
3939
rt_thread_t self = rt_thread_self();
4040
rt_uint8_t priority;
41-
#if (RTTHREAD_VERSION >= RT_VERSION_CHECK(5, 0, 0))
41+
#if (RTTHREAD_VERSION >= RT_VERSION_CHECK(5, 2, 0))
4242
const rt_uint8_t old_priority = RT_SCHED_PRIV(self).current_priority;
4343
#else
4444
const rt_uint8_t old_priority = self->current_priority;

0 commit comments

Comments
 (0)