mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Reset settings on button hold
extend this properly to the gigabeast and iriver updated manual entries Change-Id: Ibd1bce8d113193cb3b76f4daf0d6ceb01a2f7585
This commit is contained in:
parent
e75e07e1b6
commit
8283752223
7 changed files with 64 additions and 25 deletions
|
@ -570,16 +570,18 @@ static void init(void)
|
|||
settings_load(SETTINGS_ALL);
|
||||
CHART("<settings_load(ALL)");
|
||||
|
||||
#if defined(SETTINGS_RESET) || \
|
||||
#if defined(BUTTON_REC) || \
|
||||
(CONFIG_KEYPAD == GIGABEAT_PAD) || \
|
||||
(CONFIG_KEYPAD == IPOD_4G_PAD) || \
|
||||
(CONFIG_KEYPAD == IRIVER_H10_PAD)
|
||||
if (global_settings.clear_settings_on_hold &&
|
||||
#ifdef SETTINGS_RESET
|
||||
/* Reset settings if holding the reset button. (Rec on Archos,
|
||||
A on Gigabeat) */
|
||||
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
|
||||
((button_status() & SETTINGS_RESET) == SETTINGS_RESET))
|
||||
#else
|
||||
/* Reset settings if the hold button is turned on */
|
||||
if (global_settings.clear_settings_on_hold && button_hold())
|
||||
(button_hold()))
|
||||
#endif
|
||||
{
|
||||
splash(HZ*2, str(LANG_RESET_DONE_CLEAR));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue