summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-24 12:37:50 +0000
committerDave Chapman <dave@dchapman.com>2006-02-24 12:37:50 +0000
commit1272c8a696c4b942b982a1841585b31bbcf2e9ab (patch)
tree112139c27451fde9865d36151a9bd934898120c3
parent747664918b145f34dcb44a1346dd7772f111fe23 (diff)
downloadrockbox-1272c8a696c4b942b982a1841585b31bbcf2e9ab.tar.gz
rockbox-1272c8a696c4b942b982a1841585b31bbcf2e9ab.zip
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
-rw-r--r--apps/main.c5
1 files changed, 5 insertions, 0 deletions
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();