xduoox3: Allow user to gracefully exit USB disk mode by pressing power

Change-Id: Ic0382059646b7169c275aebe88867b5c0b7dd672
This commit is contained in:
Solomon Peachy 2021-08-22 07:49:42 -04:00
parent 4c745fe8ac
commit d282424ef2
1 changed files with 3 additions and 0 deletions

View File

@ -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) {