From 5d72dd4b7db376788efd5846a2ca288fb2709195 Mon Sep 17 00:00:00 2001 From: WanderingGlitch Date: Sun, 8 May 2016 19:22:14 -0500 Subject: Prevent cue_next_image from being optimized out --- laser-tag software/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laser-tag software/main.c b/laser-tag software/main.c index 197b1a8..8c226b4 100755 --- a/laser-tag software/main.c +++ b/laser-tag software/main.c @@ -60,7 +60,7 @@ static const uint8_t *images[] = { }; static const int image_count = sizeof images / sizeof *images; static int current_image = 0; -static int cue_next_image = 0; +static volatile int cue_next_image = 0; //////////////////////////// -- cgit v1.2.3-18-g5258