Skip to content

Commit d72263b

Browse files
authored
fix copy-paste comment typos in xTaskGetApplicationTaskTagFromISR and xTaskGetApplicationTaskTag (#1446)
1 parent a50edad commit d72263b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tasks.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5035,11 +5035,11 @@ BaseType_t xTaskIncrementTick( void )
50355035

50365036
traceENTER_xTaskGetApplicationTaskTag( xTask );
50375037

5038-
/* If xTask is NULL then set the calling task's hook. */
5038+
/* If xTask is NULL then get the calling task's hook. */
50395039
pxTCB = prvGetTCBFromHandle( xTask );
50405040
configASSERT( pxTCB != NULL );
50415041

5042-
/* Save the hook function in the TCB. A critical section is required as
5042+
/* Access the hook function in the TCB. A critical section is required as
50435043
* the value can be accessed from an interrupt. */
50445044
taskENTER_CRITICAL();
50455045
{
@@ -5065,11 +5065,11 @@ BaseType_t xTaskIncrementTick( void )
50655065

50665066
traceENTER_xTaskGetApplicationTaskTagFromISR( xTask );
50675067

5068-
/* If xTask is NULL then set the calling task's hook. */
5068+
/* If xTask is NULL then get the calling task's hook. */
50695069
pxTCB = prvGetTCBFromHandle( xTask );
50705070
configASSERT( pxTCB != NULL );
50715071

5072-
/* Save the hook function in the TCB. A critical section is required as
5072+
/* Access the hook function in the TCB. A critical section is required as
50735073
* the value can be accessed from an interrupt. */
50745074
/* MISRA Ref 4.7.1 [Return value shall be checked] */
50755075
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */

0 commit comments

Comments
 (0)