From d837923c36664cd5c4ce9fb4a7bab30bc370caad Mon Sep 17 00:00:00 2001 From: wanghengZzz Date: Wed, 5 Aug 2026 10:46:15 +0800 Subject: [PATCH] Fix outdated function name in xTaskCheckForTimeOut comment The comment referenced vTaskSetTimeout()/vTaskSetTimeOut(), which does not exist. The actual function is vTaskSetTimeOutState(). Signed-off-by: wanghengZzz --- tasks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks.c b/tasks.c index e117129275..dff3024344 100644 --- a/tasks.c +++ b/tasks.c @@ -5682,9 +5682,9 @@ BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) { /* The tick count is greater than the time at which - * vTaskSetTimeout() was called, but has also overflowed since - * vTaskSetTimeOut() was called. It must have wrapped all the way - * around and gone past again. This passed since vTaskSetTimeout() + * vTaskSetTimeOutState() was called, but has also overflowed since + * vTaskSetTimeOutState() was called. It must have wrapped all the way + * around and gone past again. This passed since vTaskSetTimeOutState() * was called. */ xReturn = pdTRUE; *pxTicksToWait = ( TickType_t ) 0;