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:
parent
7964b69635
commit
4632fc0682
2 changed files with 21 additions and 6 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue