Fix incorrect size calculation in MT demo (#402)

pull/401/head
Muneeb Ahmed 4 years ago committed by GitHub
parent 4312eabeb9
commit d555cdd475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save