There would not be an use for this

This commit is contained in:
Aurora 2016-08-16 22:59:25 +02:00
parent 4d9cbc4e19
commit 4f8c66b2b7
3 changed files with 5 additions and 5 deletions

View File

@ -135,7 +135,7 @@ void main(void)
bool pinExists = CONFIG(7) && readPin(&pin);
//If we get here we should check the PIN (if it exists) in all cases
if(pinExists) verifyPin(&pin, true);
if(pinExists) verifyPin(&pin);
//If no configuration file exists or SELECT is held, load configuration menu
bool shouldLoadConfigurationMenu = needConfig == CREATE_CONFIGURATION || ((pressed & BUTTON_SELECT) && !(pressed & BUTTON_L1));

View File

@ -108,7 +108,7 @@ void newPin(void)
while(HID_PAD & PIN_BUTTONS);
}
void verifyPin(PINData *in, bool allowQuit)
void verifyPin(PINData *in)
{
initScreens();
@ -131,8 +131,8 @@ void verifyPin(PINData *in, bool allowQuit)
}
while(!(pressed & PIN_BUTTONS));
pressed &= PIN_BUTTONS;// & ~BUTTON_START;
if(!allowQuit) pressed &= ~BUTTON_START;
pressed &= PIN_BUTTONS & ~BUTTON_START;
if(!pressed) continue;
if(pressed & BUTTON_START) mcuPowerOff();

View File

@ -43,4 +43,4 @@ typedef struct __attribute__((packed))
bool readPin(PINData* out);
void newPin(void);
void verifyPin(PINData *in, bool allowQuit);
void verifyPin(PINData *in);