From f08339ac9fea2724b31a4a3cb4fb784cc9477107 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sun, 28 Jan 2007 12:18:03 +0000 Subject: [PATCH] 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 --- Source/queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5