From b0f22fb96d10d432fd5396f9ac769c3d02a1a932 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 21 Sep 2015 17:56:38 +0200 Subject: [PATCH] mark system_ticks as volatile as it is updated from ISR context --- src/run_loop_embedded.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run_loop_embedded.c b/src/run_loop_embedded.c index d456d2b66..5f94af9a3 100644 --- a/src/run_loop_embedded.c +++ b/src/run_loop_embedded.c @@ -83,7 +83,7 @@ static linked_list_t timers; #endif #ifdef HAVE_TICK -static uint32_t system_ticks; +static volatile uint32_t system_ticks; #endif static int trigger_event_received = 0;