summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_button.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2015-02-22 14:55:40 -0700
committerBdale Garbee <bdale@gag.com>2015-02-22 14:55:40 -0700
commit4af4e36cda96d053458eeb040e35886890917385 (patch)
tree2b1b870b5b15af2fea0297b8cc9a5dff73d265df /src/cc1111/ao_button.c
parent91b1a80650a7dcd7c5bf819618a8cea0fceb37d9 (diff)
parent106b16b4d5d024543d7ad8c4b4762151e253f3c4 (diff)
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/cc1111/ao_button.c')
-rw-r--r--src/cc1111/ao_button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cc1111/ao_button.c b/src/cc1111/ao_button.c
index 69f3475f..a0f221c2 100644
--- a/src/cc1111/ao_button.c
+++ b/src/cc1111/ao_button.c
@@ -72,12 +72,12 @@ ao_button_mask(uint8_t reg)
}
char
-ao_button_get(void) __critical
+ao_button_get(uint16_t timeout) __critical
{
char b;
while (ao_fifo_empty(ao_button_fifo))
- if (ao_sleep(&ao_button_fifo))
+ if (ao_sleep_for(&ao_button_fifo, timeout))
return 0;
ao_fifo_remove(ao_button_fifo, b);
return b;