From e8d4b836c5a57813b8cc064adc4408459e6f201c Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Sun, 25 Feb 2024 09:32:11 +0100 Subject: [PATCH] Made variable written by interrupt handler 'volatile'. --- pipico/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipico/board.c b/pipico/board.c index 80f0b35..4a13e99 100644 --- a/pipico/board.c +++ b/pipico/board.c @@ -30,7 +30,7 @@ SOFTWARE. extern const __attribute__((aligned(4))) uint8_t firmware[]; -static bool active; +static volatile bool active; static void __time_critical_func(reset)(bool asserted) { if (asserted) {