From aec4bab6eea34263aa53d2d9101b6b75ea92b694 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Thu, 7 Dec 2006 10:34:25 +0000 Subject: 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 --- firmware/powermgmt.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/powermgmt.c') 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) #ifdef HAVE_REMOTE_LCD lcd_remote_set_contrast(0); #endif + + /* Small delay to make sure all HW gets time to flush. Especially + eeprom chips are quite slow and might be still writing the last + byte. */ + sleep(HZ/4); power_off(); #endif /* #ifndef SIMULATOR */ } -- cgit v1.2.3