From: richardbarry Date: Sun, 28 Jan 2007 12:18:03 +0000 (+0000) Subject: Slight mod to take into account different definitions between SafeRTOS and FreeRTOS... X-Git-Tag: V4.2.0~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f08339ac9fea2724b31a4a3cb4fb784cc9477107;p=freertos Slight mod to take into account different definitions between SafeRTOS and FreeRTOS.org. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@61 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/queue.c b/Source/queue.c index 8eea22b6e..b16925a31 100644 --- a/Source/queue.c +++ b/Source/queue.c @@ -240,7 +240,7 @@ size_t xQueueSizeInBytes; signed portBASE_TYPE xQueueSend( xQueueHandle pxQueue, const void *pvItemToQueue, portTickType xTicksToWait ) { -signed portBASE_TYPE xReturn = pdFAIL; +signed portBASE_TYPE xReturn = pdPASS; xTimeOutType xTimeOut; /* Make sure other tasks do not access the queue. */ @@ -459,7 +459,7 @@ signed portBASE_TYPE xQueueSendFromISR( xQueueHandle pxQueue, const void *pvItem signed portBASE_TYPE xQueueReceive( xQueueHandle pxQueue, void *pvBuffer, portTickType xTicksToWait ) { -signed portBASE_TYPE xReturn = pdFAIL; +signed portBASE_TYPE xReturn = pdTRUE; xTimeOutType xTimeOut; /* This function is very similar to xQueueSend(). See comments within