From ec3d62ccd0204ae99005aea9942c7961647fe82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Doug=20N=C3=B3brega?= Date: Fri, 16 Oct 2020 11:59:01 -0300 Subject: [PATCH] Fix: RoundRobin in task with same priority when configUSE_TIME_SLICE = 0 --- include/list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/list.h b/include/list.h index e2a00750c..ad743a26e 100644 --- a/include/list.h +++ b/include/list.h @@ -281,7 +281,9 @@ typedef struct xLIST List_t * const pxConstList = ( pxList ); \ /* Increment the index to the next item and return the item, ensuring */ \ /* we don't return the marker used at the end of the list. */ \ - ( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \ + if (configUSE_TIME_SLICING == 1){ \ + ( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \ + } \ if( ( void * ) ( pxConstList )->pxIndex == ( void * ) &( ( pxConstList )->xListEnd ) ) \ { \ ( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \