mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 08:47:45 -04:00
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 <Florian.LaRoche@gmail.com>
This commit is contained in:
parent
c4da4ef1a7
commit
1fb5ee4dad
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue