From b8c363987dd1a91a5c7c90629d1aca56c6f33cb7 Mon Sep 17 00:00:00 2001 From: wanghengZzz Date: Sat, 4 Jul 2026 10:22:41 -0700 Subject: [PATCH] fix copy-paste comment typos in xTaskGetApplicationTaskTagFromISR and xTaskGetApplicationTaskTag --- tasks.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks.c b/tasks.c index 461271fcff..3c97d3c2f2 100644 --- a/tasks.c +++ b/tasks.c @@ -5035,11 +5035,11 @@ BaseType_t xTaskIncrementTick( void ) traceENTER_xTaskGetApplicationTaskTag( xTask ); - /* If xTask is NULL then set the calling task's hook. */ + /* If xTask is NULL then get the calling task's hook. */ pxTCB = prvGetTCBFromHandle( xTask ); configASSERT( pxTCB != NULL ); - /* Save the hook function in the TCB. A critical section is required as + /* Access the hook function in the TCB. A critical section is required as * the value can be accessed from an interrupt. */ taskENTER_CRITICAL(); { @@ -5065,11 +5065,11 @@ BaseType_t xTaskIncrementTick( void ) traceENTER_xTaskGetApplicationTaskTagFromISR( xTask ); - /* If xTask is NULL then set the calling task's hook. */ + /* If xTask is NULL then get the calling task's hook. */ pxTCB = prvGetTCBFromHandle( xTask ); configASSERT( pxTCB != NULL ); - /* Save the hook function in the TCB. A critical section is required as + /* Access the hook function in the TCB. A critical section is required as * the value can be accessed from an interrupt. */ /* MISRA Ref 4.7.1 [Return value shall be checked] */ /* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */