mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
echoplayer: implement basic power-on / power-off logic
Use cpu_power_on as a GPIO to keep the main power supply enabled when running from battery. Change-Id: Ic79283a0cc640585a0297e11f9dcc2264ec9af26
This commit is contained in:
parent
e29780fe09
commit
671320b5d1
4 changed files with 24 additions and 1 deletions
|
|
@ -119,6 +119,10 @@ void main(void)
|
|||
demo_page -= 1;
|
||||
break;
|
||||
|
||||
case BUTTON_X:
|
||||
power_off();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue