diff options
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 5 |
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) } #endif /* HAVE_ADJUSTABLE_CPU_FREQ */ +int button_available( void ) +{ + return queue_count(&button_queue); +} + long button_get(bool block) { struct event ev; |