diff options
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index d05f81bb45..607e72e09a 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -477,6 +477,9 @@ static int button_read(void) | |||
477 | else if (data >= 0x0A1) | 477 | else if (data >= 0x0A1) |
478 | btn |= BUTTON_DOWN; | 478 | btn |= BUTTON_DOWN; |
479 | 479 | ||
480 | if (btn && flipped) | ||
481 | btn = button_flip(btn); /* swap upside down */ | ||
482 | |||
480 | /* Filter the button status. It is only accepted if we get the same | 483 | /* Filter the button status. It is only accepted if we get the same |
481 | status twice in a row. */ | 484 | status twice in a row. */ |
482 | if(btn != last_read) | 485 | if(btn != last_read) |