summaryrefslogtreecommitdiff
path: root/apps
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 /apps
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
Diffstat (limited to 'apps')
-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)
332 332
333 settings_calc_config_sector(); 333 settings_calc_config_sector();
334 334
335#if defined(SETTINGS_RESET) || (CONFIG_KEYPAD == IPOD_4G_PAD)
335#ifdef SETTINGS_RESET 336#ifdef SETTINGS_RESET
336 /* Reset settings if holding the rec button. */ 337 /* Reset settings if holding the rec button. */
337 if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET) 338 if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
339#else
340 /* Reset settings if the hold button is turned on */
341 if (button_hold())
342#endif
338 { 343 {
339 gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR)); 344 gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR));
340 settings_reset(); 345 settings_reset();