Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / 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();