From 46200359c388062a5e7bc40d780808d92a59f0ed Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 28 Jan 2022 09:16:49 -0800 Subject: [PATCH] altos/drivers/ao_button: Save all 32-bits of irq status Was saving in a uint8_t Signed-off-by: Keith Packard --- src/drivers/ao_button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/ao_button.c b/src/drivers/ao_button.c index 53728bce..4c18400a 100644 --- a/src/drivers/ao_button.c +++ b/src/drivers/ao_button.c @@ -125,7 +125,7 @@ _ao_button_check(uint8_t b) static void _ao_button_init(uint8_t b) { - uint8_t m = ao_arch_irqsave(); + uint32_t m = ao_arch_irqsave(); uint8_t value = _ao_button_get(b); ao_button_state[b].value = value; ao_button_state[b].time = ao_time(); -- 2.47.2