Fix incorrect #endif preprocessor comments in croutine.c and queue.c

croutine.c: #if condition is ( configUSE_CO_ROUTINES != 0 ) but the
#endif comment incorrectly said == 0, reversing the logic.

queue.c: #if condition is ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
but the #endif comment incorrectly said configSUPPORT_STATIC_ALLOCATION,
naming the wrong configuration option.

These are purely cosmetic comment fixes with zero runtime impact.

Signed-off-by: hanzhijian <hanzhijian@zepp.com>
This commit is contained in:
hanzhijian 2026-06-06 15:38:29 +08:00 committed by Kody Stribrny
parent d877cd5398
commit 950ab4ff91
2 changed files with 2 additions and 2 deletions

View File

@ -402,4 +402,4 @@
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
#endif /* configUSE_CO_ROUTINES == 0 */ #endif /* configUSE_CO_ROUTINES != 0 */

View File

@ -563,7 +563,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
return pxNewQueue; return pxNewQueue;
} }
#endif /* configSUPPORT_STATIC_ALLOCATION */ #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,