forked from len0rd/rockbox
The power thread now monitors the shutdown process and forces a poweroff if it takes more than 8 seconds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7517 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
74353a7fe4
commit
91216a5edc
5 changed files with 26 additions and 16 deletions
|
|
@ -132,7 +132,9 @@ static void button_tick(void)
|
|||
#endif
|
||||
repeat_count > POWEROFF_COUNT)
|
||||
{
|
||||
queue_post(&button_queue, SYS_POWEROFF, NULL);
|
||||
/* Tell the main thread that it's time to
|
||||
power off */
|
||||
sys_poweroff();
|
||||
|
||||
/* Safety net for players without hardware
|
||||
poweroff */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue