diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-14 09:08:26 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-14 09:08:26 +0000 |
commit | 91216a5edc57431a94eebf7037bc72c5fe1a87dc (patch) | |
tree | 6bcf24a9f1d271975f44348cb6129ea7fe0ff817 /firmware/drivers | |
parent | 74353a7fe46c5d6973bffb2488f7c8276e088e80 (diff) | |
download | rockbox-91216a5edc57431a94eebf7037bc72c5fe1a87dc.tar.gz rockbox-91216a5edc57431a94eebf7037bc72c5fe1a87dc.zip |
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
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/button.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index b0f8aa1e4d..4d1652984b 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -132,7 +132,9 @@ static void button_tick(void) | |||
132 | #endif | 132 | #endif |
133 | repeat_count > POWEROFF_COUNT) | 133 | repeat_count > POWEROFF_COUNT) |
134 | { | 134 | { |
135 | queue_post(&button_queue, SYS_POWEROFF, NULL); | 135 | /* Tell the main thread that it's time to |
136 | power off */ | ||
137 | sys_poweroff(); | ||
136 | 138 | ||
137 | /* Safety net for players without hardware | 139 | /* Safety net for players without hardware |
138 | poweroff */ | 140 | poweroff */ |