mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Fix compiler warning only.
This commit is contained in:
parent
6bf7776dec
commit
cfa31e4205
|
@ -114,7 +114,7 @@ static void prvFlashCoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE
|
||||||
static xQueueHandle xFlashQueue;
|
static xQueueHandle xFlashQueue;
|
||||||
|
|
||||||
/* This will be set to pdFALSE if we detect an error. */
|
/* This will be set to pdFALSE if we detect an error. */
|
||||||
static unsigned portBASE_TYPE uxCoRoutineFlashStatus = pdPASS;
|
static portBASE_TYPE xCoRoutineFlashStatus = pdPASS;
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ static const portTickType xFlashRates[ crfMAX_FLASH_TASKS ] = { 150 / portTICK_R
|
||||||
/* For the reasons stated at the top of the file we should always
|
/* For the reasons stated at the top of the file we should always
|
||||||
find that we can post to the queue. If we could not then an error
|
find that we can post to the queue. If we could not then an error
|
||||||
has occurred. */
|
has occurred. */
|
||||||
uxCoRoutineFlashStatus = pdFAIL;
|
xCoRoutineFlashStatus = pdFAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
crDELAY( xHandle, xFlashRates[ uxIndex ] );
|
crDELAY( xHandle, xFlashRates[ uxIndex ] );
|
||||||
|
@ -207,7 +207,7 @@ unsigned portBASE_TYPE uxLEDToFlash;
|
||||||
if( xResult != pdPASS )
|
if( xResult != pdPASS )
|
||||||
{
|
{
|
||||||
/* We would not expect to wake unless we received something. */
|
/* We would not expect to wake unless we received something. */
|
||||||
uxCoRoutineFlashStatus = pdFAIL;
|
xCoRoutineFlashStatus = pdFAIL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -225,6 +225,6 @@ portBASE_TYPE xAreFlashCoRoutinesStillRunning( void )
|
||||||
{
|
{
|
||||||
/* Return pdPASS or pdFAIL depending on whether an error has been detected
|
/* Return pdPASS or pdFAIL depending on whether an error has been detected
|
||||||
or not. */
|
or not. */
|
||||||
return uxCoRoutineFlashStatus;
|
return xCoRoutineFlashStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue