1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Bertrik Sikken 2009-08-05 16:16:17 +00:00
parent 7964b69635
commit 4632fc0682
2 changed files with 21 additions and 6 deletions

View file

@ -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(),