From 1272c8a696c4b942b982a1841585b31bbcf2e9ab Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 24 Feb 2006 12:37:50 +0000 Subject: [PATCH] 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 --- apps/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/main.c b/apps/main.c index fcefa00898..09c1e4bea5 100644 --- a/apps/main.c +++ b/apps/main.c @@ -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();