From eff07c040adfec9513e20d474cc53371d0f09983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WineQ=E5=9C=889?= Date: Fri, 20 Mar 2020 00:00:05 +0800 Subject: [PATCH] Update tasks.c (#26) Reopen this PR. --- tasks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.c b/tasks.c index 49d28c63e..8299498c0 100644 --- a/tasks.c +++ b/tasks.c @@ -4133,10 +4133,10 @@ TCB_t *pxTCB; the mutex. If the mutex is held by a task then it cannot be given from an interrupt, and if a mutex is given by the holding task then it must be the running state task. Remove - the holding task from the ready/delayed list. */ + the holding task from the ready list. */ if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) { - taskRESET_READY_PRIORITY( pxTCB->uxPriority ); + portRESET_READY_PRIORITY( pxTCB->uxPriority, uxTopReadyPriority ); } else {