From 4dd4540cb0e69f4c98fa17ad12a2ff39f5708a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WineQ=E5=9C=889?= Date: Sat, 14 Mar 2020 14:30:21 +0800 Subject: [PATCH] Update tasks.c This is the same question as a PR I used to make. --- tasks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.c b/tasks.c index d83db4b53..5be4a233a 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 ); } else {