]> git.sur5r.net Git - freertos/commitdiff
Slight mod to take into account different definitions between SafeRTOS and FreeRTOS...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 28 Jan 2007 12:18:03 +0000 (12:18 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 28 Jan 2007 12:18:03 +0000 (12:18 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@61 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/queue.c

index 8eea22b6e4892fcf734078d6adead54fe04df34b..b16925a31fe4495a1703444c13d58e1356273709 100644 (file)
@@ -240,7 +240,7 @@ size_t xQueueSizeInBytes;
 \r
 signed portBASE_TYPE xQueueSend( xQueueHandle pxQueue, const void *pvItemToQueue, portTickType xTicksToWait )\r
 {\r
-signed portBASE_TYPE xReturn = pdFAIL;\r
+signed portBASE_TYPE xReturn = pdPASS;\r
 xTimeOutType xTimeOut;\r
 \r
        /* Make sure other tasks do not access the queue. */\r
@@ -459,7 +459,7 @@ signed portBASE_TYPE xQueueSendFromISR( xQueueHandle pxQueue, const void *pvItem
 \r
 signed portBASE_TYPE xQueueReceive( xQueueHandle pxQueue, void *pvBuffer, portTickType xTicksToWait )\r
 {\r
-signed portBASE_TYPE xReturn = pdFAIL;\r
+signed portBASE_TYPE xReturn = pdTRUE;\r
 xTimeOutType xTimeOut;\r
 \r
        /* This function is very similar to xQueueSend().  See comments within\r