From bcf08a8c5498b1e80d748b6d4347251f5b2b1d2c Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Sun, 26 Oct 2014 20:54:18 +0300 Subject: buttonPressed must be volatile --- game.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.h b/game.h index 5706461..7004f17 100644 --- a/game.h +++ b/game.h @@ -42,6 +42,6 @@ uint8_t timer2; uint8_t preSignal; uint32_t startTime; uint32_t time; -uint8_t buttonPressed; +volatile uint8_t buttonPressed; #endif -- cgit v1.2.1