From 1fb5ee4dadd326fec79e25811aac36eb99e3dfd9 Mon Sep 17 00:00:00 2001 From: Florian La Roche Date: Wed, 11 Jun 2025 09:17:56 +0200 Subject: [PATCH] Demo/Common/Minimal/StreamBufferInterrupt.c: more strict result checking (#1356) From looking at the code, I think this more strict error checking was intended in xIsInterruptStreamBufferDemoStillRunning(). If not, then the else part and var could be completely removed as dead code. Signed-off-by: Florian La Roche --- FreeRTOS/Demo/Common/Minimal/StreamBufferInterrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeRTOS/Demo/Common/Minimal/StreamBufferInterrupt.c b/FreeRTOS/Demo/Common/Minimal/StreamBufferInterrupt.c index 760e2a811..03e9e60be 100644 --- a/FreeRTOS/Demo/Common/Minimal/StreamBufferInterrupt.c +++ b/FreeRTOS/Demo/Common/Minimal/StreamBufferInterrupt.c @@ -213,7 +213,7 @@ void vBasicStreamBufferSendFromISR( void ) BaseType_t xIsInterruptStreamBufferDemoStillRunning( void ) { - uint32_t ulLastCycleCount = 0; + static uint32_t ulLastCycleCount = 0; /* Check the demo is still running. */ if( ulLastCycleCount == ulCycleCount )