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 )