Skip to content

Commit

Permalink
Declare initialization variable of FIFO 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 43ca468 commit 5f97b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/tasks/examples/fifo-ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define TEST_STR "[fifo example] hello world\n\r"
#define LEN strlen(TEST_STR)

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

void fifo_task1(void)
{
Expand Down

0 comments on commit 5f97b51

Please sign in to comment.