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 8ed445c0c3..8dec7696a8 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -87,6 +87,11 @@ static void button_tick(void)
else {
repeat = false;
count = 0;
+ /* Report that the key has been released */
+ if(lastbtn != btn)
+ {
+ queue_post(&button_queue, BUTTON_REL | lastbtn, NULL);
+ }
}
lastbtn = btn;