forked from len0rd/rockbox
make A the new 'clear settings' button for the Gigabeat as it was easy to accidentally trigger it with HOLD
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13279 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7eb8512bf0
commit
810f7178ae
1 changed files with 6 additions and 3 deletions
|
|
@ -84,6 +84,8 @@
|
||||||
|
|
||||||
#ifdef BUTTON_REC
|
#ifdef BUTTON_REC
|
||||||
#define SETTINGS_RESET BUTTON_REC
|
#define SETTINGS_RESET BUTTON_REC
|
||||||
|
#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
|
||||||
|
#define SETTINGS_RESET BUTTON_A
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_TUNER
|
#if CONFIG_TUNER
|
||||||
|
|
@ -459,9 +461,10 @@ static void init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(SETTINGS_RESET) || (CONFIG_KEYPAD == IPOD_4G_PAD) || \
|
#if defined(SETTINGS_RESET) || (CONFIG_KEYPAD == IPOD_4G_PAD) || \
|
||||||
(CONFIG_KEYPAD == IRIVER_H10_PAD) || (CONFIG_KEYPAD == GIGABEAT_PAD)
|
(CONFIG_KEYPAD == IRIVER_H10_PAD)
|
||||||
#ifdef SETTINGS_RESET
|
#ifdef SETTINGS_RESET
|
||||||
/* Reset settings if holding the rec button. */
|
/* Reset settings if holding the reset button. (Rec on Archos,
|
||||||
|
A on Gigabeat) */
|
||||||
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
|
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
|
||||||
#else
|
#else
|
||||||
/* Reset settings if the hold button is turned on */
|
/* Reset settings if the hold button is turned on */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue