summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 9f19bc0945..7e1ab47952 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -421,3 +421,13 @@ int button_add(unsigned int button)
return 1;
}
#endif
+
+int button_status(void)
+{
+ return button_read();
+}
+
+void button_clear_queue(void)
+{
+ queue_empty(&button_queue);
+}