summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/button.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index d05f81b..607e72e 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -477,6 +477,9 @@ static int button_read(void)
else if (data >= 0x0A1)
btn |= BUTTON_DOWN;
+ if (btn && flipped)
+ btn = button_flip(btn); /* swap upside down */
+
/* Filter the button status. It is only accepted if we get the same
status twice in a row. */
if(btn != last_read)