diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-12-07 10:34:25 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-12-07 10:34:25 +0000 |
commit | aec4bab6eea34263aa53d2d9101b6b75ea92b694 (patch) | |
tree | 806aa38c883e656dde5b670aaaf0232198efeb4b /firmware | |
parent | de100c36cbb791e7f44f8c77acc3ececdc6781ec (diff) | |
download | rockbox-aec4bab6eea34263aa53d2d9101b6b75ea92b694.tar.gz rockbox-aec4bab6eea34263aa53d2d9101b6b75ea92b694.zip |
Small delay before cutting off power to allow all hardware (especially
eeprom chip) to flush.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11682 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/powermgmt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index ed0e69ef96..e59e2d50b9 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -1341,6 +1341,11 @@ void shutdown_hw(void) | |||
1341 | #ifdef HAVE_REMOTE_LCD | 1341 | #ifdef HAVE_REMOTE_LCD |
1342 | lcd_remote_set_contrast(0); | 1342 | lcd_remote_set_contrast(0); |
1343 | #endif | 1343 | #endif |
1344 | |||
1345 | /* Small delay to make sure all HW gets time to flush. Especially | ||
1346 | eeprom chips are quite slow and might be still writing the last | ||
1347 | byte. */ | ||
1348 | sleep(HZ/4); | ||
1344 | power_off(); | 1349 | power_off(); |
1345 | #endif /* #ifndef SIMULATOR */ | 1350 | #endif /* #ifndef SIMULATOR */ |
1346 | } | 1351 | } |