From 19c6e66c1353993659ee007a6c1792a6b0b7ba13 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 16 Mar 2008 13:55:16 +0000 Subject: Implement the playback event handling as a system-wide multi-purpose event system. Unified mpeg.c and playback.c audio event handling. Converted ata_idle_notify to use the new event handling system also. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16682 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index 27832b427f..7eec15baf3 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -601,25 +601,7 @@ int settings_save( void ) target doesnt have rtc ram */ write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE); #endif - if(!register_ata_idle_func(flush_config_block_callback)) - { - int i; - FOR_NB_SCREENS(i) - { - screens[i].clear_display(); -#ifdef HAVE_LCD_CHARCELLS - screens[i].puts(0, 0, str(LANG_SETTINGS_SAVE_FAILED)); - screens[i].puts(0, 1, str(LANG_SETTINGS_PARTITION)); -#else - screens[i].puts(4, 2, str(LANG_SETTINGS_SAVE_FAILED)); - screens[i].puts(2, 4, str(LANG_SETTINGS_PARTITION)); - screens[i].update(); -#endif - } - cond_talk_ids_fq(LANG_SETTINGS_SAVE_FAILED); - sleep(HZ*2); - return -1; - } + register_ata_idle_func(flush_config_block_callback); return 0; } bool settings_save_config(int options) -- cgit v1.2.3