diff --git a/docs/CREDITS b/docs/CREDITS index dff8826faf..391edecd26 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -415,6 +415,7 @@ Jelle Geerts Tadeusz Pyś Rostislav Chekan Florin Popescu +Volker Mische The libmad team 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 @@ -437,6 +437,9 @@ static int button_flip(int button) #endif #if CONFIG_KEYPAD == RECORDER_PAD | BUTTON_F1 | BUTTON_F3 +#endif +#if CONFIG_KEYPAD == SANSA_C200_PAD + | BUTTON_VOL_UP | BUTTON_VOL_DOWN #endif ); @@ -462,6 +465,12 @@ static int button_flip(int button) if (button & BUTTON_F3) newbutton |= BUTTON_F1; #endif +#if CONFIG_KEYPAD == SANSA_C200_PAD + if (button & BUTTON_VOL_UP) + newbutton |= BUTTON_VOL_DOWN; + if (button & BUTTON_VOL_DOWN) + newbutton |= BUTTON_VOL_UP; +#endif return newbutton; }