From f20d072c4a015fd1d694af0b6b2581c5ad027b6a Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Sun, 28 Jan 2007 12:18:03 +0000 Subject: [PATCH] Slight mod to take into account different definitions between SafeRTOS and FreeRTOS.org. --- Source/queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/queue.c b/Source/queue.c index 8eea22b6e4..b16925a31f 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