diff options
-rw-r--r-- | docs/CREDITS | 1 | ||||
-rw-r--r-- | firmware/drivers/button.c | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/CREDITS b/docs/CREDITS index dff8826faf..391edecd26 100644 --- a/docs/CREDITS +++ b/docs/CREDITS | |||
@@ -415,6 +415,7 @@ Jelle Geerts | |||
415 | Tadeusz Pyś | 415 | Tadeusz Pyś |
416 | Rostislav Chekan | 416 | Rostislav Chekan |
417 | Florin Popescu | 417 | Florin Popescu |
418 | Volker Mische | ||
418 | 419 | ||
419 | The libmad team | 420 | The libmad team |
420 | The wavpack team | 421 | The wavpack team |
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 8ad93ae022..9dfebf6e38 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -438,6 +438,9 @@ static int button_flip(int button) | |||
438 | #if CONFIG_KEYPAD == RECORDER_PAD | 438 | #if CONFIG_KEYPAD == RECORDER_PAD |
439 | | BUTTON_F1 | BUTTON_F3 | 439 | | BUTTON_F1 | BUTTON_F3 |
440 | #endif | 440 | #endif |
441 | #if CONFIG_KEYPAD == SANSA_C200_PAD | ||
442 | | BUTTON_VOL_UP | BUTTON_VOL_DOWN | ||
443 | #endif | ||
441 | ); | 444 | ); |
442 | 445 | ||
443 | if (button & BUTTON_LEFT) | 446 | if (button & BUTTON_LEFT) |
@@ -462,6 +465,12 @@ static int button_flip(int button) | |||
462 | if (button & BUTTON_F3) | 465 | if (button & BUTTON_F3) |
463 | newbutton |= BUTTON_F1; | 466 | newbutton |= BUTTON_F1; |
464 | #endif | 467 | #endif |
468 | #if CONFIG_KEYPAD == SANSA_C200_PAD | ||
469 | if (button & BUTTON_VOL_UP) | ||
470 | newbutton |= BUTTON_VOL_DOWN; | ||
471 | if (button & BUTTON_VOL_DOWN) | ||
472 | newbutton |= BUTTON_VOL_UP; | ||
473 | #endif | ||
465 | 474 | ||
466 | return newbutton; | 475 | return newbutton; |
467 | } | 476 | } |