1
0
Fork 0
forked from len0rd/rockbox

button_status() no longer calls button_read(), since it isn't interrupt safe

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5670 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-01-27 11:49:29 +00:00
parent f4702040d6
commit 72de21ae97

View file

@ -36,8 +36,8 @@
struct event_queue button_queue; struct event_queue button_queue;
static int lastbtn; /* Last valid button status */ static long lastbtn; /* Last valid button status */
static int last_read; /* Last button status, for debouncing/filtering */ static long last_read; /* Last button status, for debouncing/filtering */
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
static bool flipped; /* buttons can be flipped to match the LCD flip */ static bool flipped; /* buttons can be flipped to match the LCD flip */
#endif #endif
@ -509,7 +509,7 @@ bool button_hold(void)
int button_status(void) int button_status(void)
{ {
return button_read(); return last_btn;
} }
void button_clear_queue(void) void button_clear_queue(void)