mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-12-17 10:36:22 +08:00
Fix incorrect size calculation in MT demo (#402)
This commit is contained in:
@@ -1809,7 +1809,7 @@ void prvAsyncPublishTask( void * pvParameters )
|
||||
for( int i = 0; i < mqttexamplePUBLISH_COUNT / 2; i++ )
|
||||
{
|
||||
pxContexts[ i ] = ( CommandContext_t * ) pvPortMalloc( sizeof( CommandContext_t ) );
|
||||
memset( ( void * ) pxContexts[ i ], 0x00, sizeof( pxContexts[ i ] ) );
|
||||
memset( ( void * ) pxContexts[ i ], 0x00, sizeof( CommandContext_t ) );
|
||||
pxContexts[ i ]->xTaskToNotify = xTaskGetCurrentTaskHandle();
|
||||
|
||||
/* Set the notification bit to be the publish number. This prevents this demo
|
||||
|
||||
Reference in New Issue
Block a user