forked from len0rd/rockbox
Now define SETTINGS_RESET if we have a button to reset settings during
boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8191 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e769b80cd9
commit
8e8c1a8b8f
1 changed files with 5 additions and 3 deletions
|
|
@ -71,6 +71,7 @@
|
|||
#endif
|
||||
#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR)
|
||||
#include "pcm_record.h"
|
||||
#define SETTINGS_RESET BUTTON_REC
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_TUNER
|
||||
|
|
@ -322,16 +323,17 @@ void init(void)
|
|||
|
||||
settings_calc_config_sector();
|
||||
|
||||
#ifdef SETTINGS_RESET
|
||||
/* Reset settings if holding the rec button. */
|
||||
if ((button_status() & BUTTON_REC) == BUTTON_REC)
|
||||
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
|
||||
{
|
||||
gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR));
|
||||
settings_reset();
|
||||
}
|
||||
else
|
||||
{
|
||||
#endif
|
||||
settings_load(SETTINGS_ALL);
|
||||
}
|
||||
|
||||
|
||||
init_dircache();
|
||||
gui_sync_wps_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue