mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-10-26 23:36:32 -04:00 
			
		
		
		
	Fix incorrect size calculation in MT demo (#402)
This commit is contained in:
		
							parent
							
								
									4312eabeb9
								
							
						
					
					
						commit
						d555cdd475
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue