Skip to content

Commit

Permalink
Declare initialization variable of poll example task as volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
shengwen-tw committed May 19, 2024
1 parent 5f97b51 commit 0396e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/tasks/examples/poll-ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

static char buffer[100];

static bool fifo_init_ready = false;
static volatile bool fifo_init_ready = false;

void poll_task1(void)
{
Expand Down

0 comments on commit 0396e2d

Please sign in to comment.