diff options
author | WanderingGlitch <wandering.glitch+git@gmail.com> | 2016-05-08 19:22:14 -0500 |
---|---|---|
committer | WanderingGlitch <wandering.glitch+git@gmail.com> | 2016-05-08 19:22:14 -0500 |
commit | 5d72dd4b7db376788efd5846a2ca288fb2709195 (patch) | |
tree | f3a404340d26c908a8ec59a9101a06d7d3533d71 | |
parent | cb2443c3dd5e3151b7bc9817af06428559cf8d1b (diff) |
Prevent cue_next_image from being optimized out
-rwxr-xr-x | laser-tag software/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; //////////////////////////// |