forked from len0rd/rockbox
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
This commit is contained in:
parent
de100c36cb
commit
aec4bab6ee
1 changed files with 5 additions and 0 deletions
|
@ -1341,6 +1341,11 @@ void shutdown_hw(void)
|
||||||
#ifdef HAVE_REMOTE_LCD
|
#ifdef HAVE_REMOTE_LCD
|
||||||
lcd_remote_set_contrast(0);
|
lcd_remote_set_contrast(0);
|
||||||
#endif
|
#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();
|
power_off();
|
||||||
#endif /* #ifndef SIMULATOR */
|
#endif /* #ifndef SIMULATOR */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue