Skip to content

Commit 0396e2d

Browse files
committed
Declare initialization variable of poll example task as volatile
1 parent 5f97b51 commit 0396e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user/tasks/examples/poll-ex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
static char buffer[100];
1212

13-
static bool fifo_init_ready = false;
13+
static volatile bool fifo_init_ready = false;
1414

1515
void poll_task1(void)
1616
{

0 commit comments

Comments
 (0)