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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index e60657c82d..9376dace7a 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -36,8 +36,8 @@
36 36
37struct event_queue button_queue; 37struct event_queue button_queue;
38 38
39static int lastbtn; /* Last valid button status */ 39static long lastbtn; /* Last valid button status */
40static int last_read; /* Last button status, for debouncing/filtering */ 40static long last_read; /* Last button status, for debouncing/filtering */
41#ifdef HAVE_LCD_BITMAP 41#ifdef HAVE_LCD_BITMAP
42static bool flipped; /* buttons can be flipped to match the LCD flip */ 42static bool flipped; /* buttons can be flipped to match the LCD flip */
43#endif 43#endif
@@ -509,7 +509,7 @@ bool button_hold(void)
509 509
510int button_status(void) 510int button_status(void)
511{ 511{
512 return button_read(); 512 return last_btn;
513} 513}
514 514
515void button_clear_queue(void) 515void button_clear_queue(void)