summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/main.c b/apps/main.c
index d90e23a06a..6985426fbd 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -71,6 +71,7 @@
71#endif 71#endif
72#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR) 72#if defined(IRIVER_H100_SERIES) && !defined(SIMULATOR)
73#include "pcm_record.h" 73#include "pcm_record.h"
74#define SETTINGS_RESET BUTTON_REC
74#endif 75#endif
75 76
76#ifdef CONFIG_TUNER 77#ifdef CONFIG_TUNER
@@ -322,16 +323,17 @@ void init(void)
322 323
323 settings_calc_config_sector(); 324 settings_calc_config_sector();
324 325
326#ifdef SETTINGS_RESET
325 /* Reset settings if holding the rec button. */ 327 /* Reset settings if holding the rec button. */
326 if ((button_status() & BUTTON_REC) == BUTTON_REC) 328 if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
327 { 329 {
328 gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR)); 330 gui_syncsplash(HZ*2, true, str(LANG_RESET_DONE_CLEAR));
329 settings_reset(); 331 settings_reset();
330 } 332 }
331 else 333 else
332 { 334#endif
333 settings_load(SETTINGS_ALL); 335 settings_load(SETTINGS_ALL);
334 } 336
335 337
336 init_dircache(); 338 init_dircache();
337 gui_sync_wps_init(); 339 gui_sync_wps_init();