File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -7231,7 +7231,7 @@ static void prvResetNextTaskUnblockTime( void )
7231
7231
uxArraySize = uxTaskGetSystemState ( pxTaskStatusArray , uxArraySize , NULL );
7232
7232
7233
7233
/* Create a human readable table from the binary data. */
7234
- for ( x = 0 ; ( x < uxArraySize ) && ( xOutputBufferFull == pdFALSE ) ; x ++ )
7234
+ for ( x = 0 ; x < uxArraySize ; x ++ )
7235
7235
{
7236
7236
switch ( pxTaskStatusArray [ x ].eCurrentState )
7237
7237
{
@@ -7310,6 +7310,11 @@ static void prvResetNextTaskUnblockTime( void )
7310
7310
{
7311
7311
xOutputBufferFull = pdTRUE ;
7312
7312
}
7313
+
7314
+ if ( xOutputBufferFull == pdTRUE )
7315
+ {
7316
+ break ;
7317
+ }
7313
7318
}
7314
7319
7315
7320
/* Free the array again. NOTE! If configSUPPORT_DYNAMIC_ALLOCATION
@@ -7391,7 +7396,7 @@ static void prvResetNextTaskUnblockTime( void )
7391
7396
if ( ulTotalTime > 0UL )
7392
7397
{
7393
7398
/* Create a human readable table from the binary data. */
7394
- for ( x = 0 ; ( x < uxArraySize ) && ( xOutputBufferFull == pdFALSE ) ; x ++ )
7399
+ for ( x = 0 ; x < uxArraySize ; x ++ )
7395
7400
{
7396
7401
/* What percentage of the total run time has the task used?
7397
7402
* This will always be rounded down to the nearest integer.
@@ -7472,6 +7477,11 @@ static void prvResetNextTaskUnblockTime( void )
7472
7477
{
7473
7478
xOutputBufferFull = pdTRUE ;
7474
7479
}
7480
+
7481
+ if ( xOutputBufferFull == pdTRUE )
7482
+ {
7483
+ break ;
7484
+ }
7475
7485
}
7476
7486
}
7477
7487
else
You can’t perform that action at this time.
0 commit comments