altos/drivers/ao_button: Save all 32-bits of irq status
authorKeith Packard <keithp@keithp.com>
Fri, 28 Jan 2022 17:16:49 +0000 (09:16 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 01:26:49 +0000 (17:26 -0800)
Was saving in a uint8_t

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_button.c

index 53728bceef47d99c26b54fe6ad58a637dc985c8c..4c18400a406d175725e599d2c62ca78b2f9989c2 100644 (file)
@@ -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();