From 6199b72fbf57a7c5b3d7b195a3bd1446779314cd Mon Sep 17 00:00:00 2001 From: cykro82 <48791109+cykro82@users.noreply.github.com> Date: Tue, 2 Jun 2020 19:50:02 +0200 Subject: [PATCH] =?UTF-8?q?Renamed=20trace=20point=20in=20prvNotifyQueueSe?= =?UTF-8?q?tContainer()=20so=20it=20isn't=20a=20d=E2=80=A6=20(#47)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * * Renamed trace point in prvNotifyQueueSetContainer() so it isn't a duplicate of the trace point in xQueueGenericSend() * * Fixed backwards compatibility. Co-authored-by: Erik Tamlin --- include/FreeRTOS.h | 4 ++++ queue.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/FreeRTOS.h b/include/FreeRTOS.h index 05cda7da0..75e2855f7 100644 --- a/include/FreeRTOS.h +++ b/include/FreeRTOS.h @@ -456,6 +456,10 @@ hold explicit before calling the code. */ #define traceCREATE_COUNTING_SEMAPHORE_FAILED() #endif +#ifndef traceQUEUE_SET_SEND + #define traceQUEUE_SET_SEND traceQUEUE_SEND +#endif + #ifndef traceQUEUE_SEND #define traceQUEUE_SEND( pxQueue ) #endif diff --git a/queue.c b/queue.c index 8b46da06a..b30d21215 100644 --- a/queue.c +++ b/queue.c @@ -2893,7 +2893,7 @@ Queue_t * const pxQueue = xQueue; { const int8_t cTxLock = pxQueueSetContainer->cTxLock; - traceQUEUE_SEND( pxQueueSetContainer ); + traceQUEUE_SET_SEND( pxQueueSetContainer ); /* The data copied is the handle of the queue that contains data. */ xReturn = prvCopyDataToQueue( pxQueueSetContainer, &pxQueue, queueSEND_TO_BACK );