xduoox3: Allow user to gracefully exit USB disk mode by pressing power
Change-Id: Ic0382059646b7169c275aebe88867b5c0b7dd672
This commit is contained in:
parent
4c745fe8ac
commit
d282424ef2
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@ static void usb_mode(void)
|
|||
|
||||
if (button == SYS_USB_CONNECTED)
|
||||
break; /* Hit */
|
||||
|
||||
if (button == BUTTON_POWER)
|
||||
return;
|
||||
}
|
||||
|
||||
if (button == SYS_USB_CONNECTED) {
|
||||
|
|
Loading…
Reference in a new issue