summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scheduler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scheduler.c b/src/scheduler.c
index 0c1bf1e506..699c817270 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -784,7 +784,7 @@ void rt_schedule_remove_thread(struct rt_thread *thread)
{
#if RT_THREAD_PRIORITY_MAX > 32
pcpu->ready_table[thread->number] &= ~thread->high_mask;
- if (rt_thread_ready_table[thread->number] == 0)
+ if (pcpu->ready_table[thread->number] == 0)
{
pcpu->priority_group &= ~thread->number_mask;
}