From: Keith Packard Date: Fri, 28 Jan 2022 17:16:49 +0000 (-0800) Subject: altos/drivers/ao_button: Save all 32-bits of irq status X-Git-Tag: 1.9.10.4~50 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=46200359c388062a5e7bc40d780808d92a59f0ed;p=fw%2Faltos altos/drivers/ao_button: Save all 32-bits of irq status Was saving in a uint8_t Signed-off-by: Keith Packard --- 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();