projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fd29d9
)
altos/drivers/ao_button: Save all 32-bits of irq status
author
Keith Packard
<keithp@keithp.com>
Fri, 28 Jan 2022 17:16:49 +0000
(09:16 -0800)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/drivers/ao_button.c
b/src/drivers/ao_button.c
index 53728bceef47d99c26b54fe6ad58a637dc985c8c..4c18400a406d175725e599d2c62ca78b2f9989c2 100644
(file)
--- 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)
{
- uint
8_t
m = ao_arch_irqsave();
+ uint
32_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();