summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2009-08-05 16:16:17 +0000
committerBertrik Sikken <bertrik@sikken.nl>2009-08-05 16:16:17 +0000
commit4632fc0682cfc3e2490435d616c7fa0b48088125 (patch)
treee4d82edd4210537393457d71f9850d74aa516c8b /bootloader
parent7964b69635b27ffb9c6db6df8bc6e3a542d73de8 (diff)
downloadrockbox-4632fc0682cfc3e2490435d616c7fa0b48088125.tar.gz
rockbox-4632fc0682cfc3e2490435d616c7fa0b48088125.tar.bz2
rockbox-4632fc0682cfc3e2490435d616c7fa0b48088125.zip
Samsung YP-S3: allow player to stay powered up without the USB cable plugged and implement power_off
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22175 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/samsung_yps3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader/samsung_yps3.c b/bootloader/samsung_yps3.c
index 33115a92ac..e541ff2f53 100644
--- a/bootloader/samsung_yps3.c
+++ b/bootloader/samsung_yps3.c
@@ -266,6 +266,12 @@ void main(void)
lcd_puts(0, line++, mystring);
#endif
+#if 1 /* power off using power button */
+ button = button_read_device();
+ if (button & BUTTON_POWER) {
+ power_off();
+ }
+#endif
#if 1 /* button info */
snprintf(mystring, 64, "BUTTONS %08X, %s", button_read_device(),