iPod: Reset the settings if the hold button is turned on before Rockbox starts

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8826 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-02-24 12:37:50 +00:00
parent 747664918b
commit 1272c8a696

View file

@ -332,9 +332,14 @@ void init(void)
settings_calc_config_sector();
#if defined(SETTINGS_RESET) || (CONFIG_KEYPAD == IPOD_4G_PAD)
#ifdef SETTINGS_RESET
/* Reset settings if holding the rec button. */
if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
#else
/* Reset settings if the hold button is turned on */
if (button_hold())
#endif
{
gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR));
settings_reset();