summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 3daa08b2c3..d79a9333ff 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -293,6 +293,11 @@ static void button_boost(bool state)
293} 293}
294#endif /* HAVE_ADJUSTABLE_CPU_FREQ */ 294#endif /* HAVE_ADJUSTABLE_CPU_FREQ */
295 295
296int button_available( void )
297{
298 return queue_count(&button_queue);
299}
300
296long button_get(bool block) 301long button_get(bool block)
297{ 302{
298 struct event ev; 303 struct event ev;