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 <wangheng@cmdm.csie.ntu.edu.tw>
This commit is contained in:
wanghengZzz 2026-08-05 10:46:15 +08:00
parent 4269c69a16
commit d837923c36

View file

@ -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;