Fix incorrect size calculation in MT demo (#402)

This commit is contained in:
Muneeb Ahmed 2020-11-10 13:58:13 -08:00 committed by GitHub
parent 4312eabeb9
commit d555cdd475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1809,7 +1809,7 @@ void prvAsyncPublishTask( void * pvParameters )
for( int i = 0; i < mqttexamplePUBLISH_COUNT / 2; i++ ) for( int i = 0; i < mqttexamplePUBLISH_COUNT / 2; i++ )
{ {
pxContexts[ i ] = ( CommandContext_t * ) pvPortMalloc( sizeof( CommandContext_t ) ); 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(); pxContexts[ i ]->xTaskToNotify = xTaskGetCurrentTaskHandle();
/* Set the notification bit to be the publish number. This prevents this demo /* Set the notification bit to be the publish number. This prevents this demo