diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2008-03-16 13:55:16 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2008-03-16 13:55:16 +0000 |
commit | 19c6e66c1353993659ee007a6c1792a6b0b7ba13 (patch) | |
tree | 1dd7f88282b2e543fb5b22458fcb2f3bf1c7eb80 /apps/settings.c | |
parent | 478ba0afa11061a620e44cd9cc60debd955b1b33 (diff) | |
download | rockbox-19c6e66c1353993659ee007a6c1792a6b0b7ba13.tar.gz rockbox-19c6e66c1353993659ee007a6c1792a6b0b7ba13.zip |
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
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 20 |
1 files changed, 1 insertions, 19 deletions
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 ) | |||
601 | target doesnt have rtc ram */ | 601 | target doesnt have rtc ram */ |
602 | write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE); | 602 | write_nvram_data(nvram_buffer,NVRAM_BLOCK_SIZE); |
603 | #endif | 603 | #endif |
604 | if(!register_ata_idle_func(flush_config_block_callback)) | 604 | register_ata_idle_func(flush_config_block_callback); |
605 | { | ||
606 | int i; | ||
607 | FOR_NB_SCREENS(i) | ||
608 | { | ||
609 | screens[i].clear_display(); | ||
610 | #ifdef HAVE_LCD_CHARCELLS | ||
611 | screens[i].puts(0, 0, str(LANG_SETTINGS_SAVE_FAILED)); | ||
612 | screens[i].puts(0, 1, str(LANG_SETTINGS_PARTITION)); | ||
613 | #else | ||
614 | screens[i].puts(4, 2, str(LANG_SETTINGS_SAVE_FAILED)); | ||
615 | screens[i].puts(2, 4, str(LANG_SETTINGS_PARTITION)); | ||
616 | screens[i].update(); | ||
617 | #endif | ||
618 | } | ||
619 | cond_talk_ids_fq(LANG_SETTINGS_SAVE_FAILED); | ||
620 | sleep(HZ*2); | ||
621 | return -1; | ||
622 | } | ||
623 | return 0; | 605 | return 0; |
624 | } | 606 | } |
625 | bool settings_save_config(int options) | 607 | bool settings_save_config(int options) |