Better this way

This commit is contained in:
Aurora 2016-11-13 22:31:00 +01:00
parent c83edea7ad
commit 5c855ea52f
2 changed files with 3 additions and 1 deletions

View File

@ -313,6 +313,8 @@ void configMenu(bool isSdMode, bool oldPinStatus, u32 oldPinMode)
pressed = BUTTON_UP;
selectedOption = totalIndexes;
break;
default:
break;
}
if(selectedOption < multiOptionsAmount)

View File

@ -228,7 +228,7 @@ void payloadMenu(void)
u32 pressed = 0,
selectedPayload = 0;
while(!(pressed & (BUTTON_A | BUTTON_START)))
while(pressed != BUTTON_A && pressed != BUTTON_START)
{
do
{