xEventBitsType xEventGroupWaitBits( xEventGroupHandle xEventGroup, xEventBitsType uxBitsToWaitFor, portBASE_TYPE xClearOnExit, portBASE_TYPE xWaitForAllBits, portTickType xTicksToWait )\r
{\r
xEVENT_BITS *pxEventBits = ( xEVENT_BITS * ) xEventGroup;\r
-const xEventBitsType uxCurrentEventBits = pxEventBits->uxEventBits;\r
xEventBitsType uxReturn, uxControlBits = 0;\r
\r
/* Check the user is not attempting to wait on the bits used by the kernel\r
\r
taskENTER_CRITICAL();\r
{\r
+ const xEventBitsType uxCurrentEventBits = pxEventBits->uxEventBits;\r
+\r
if( xWaitForAllBits == pdFALSE )\r
{\r
/* Task only has to wait for one bit within uxBitsToWaitFor to be set. Is\r