There would not be an use for this
This commit is contained in:
parent
4d9cbc4e19
commit
4f8c66b2b7
@ -135,7 +135,7 @@ void main(void)
|
|||||||
bool pinExists = CONFIG(7) && readPin(&pin);
|
bool pinExists = CONFIG(7) && readPin(&pin);
|
||||||
|
|
||||||
//If we get here we should check the PIN (if it exists) in all cases
|
//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
|
//If no configuration file exists or SELECT is held, load configuration menu
|
||||||
bool shouldLoadConfigurationMenu = needConfig == CREATE_CONFIGURATION || ((pressed & BUTTON_SELECT) && !(pressed & BUTTON_L1));
|
bool shouldLoadConfigurationMenu = needConfig == CREATE_CONFIGURATION || ((pressed & BUTTON_SELECT) && !(pressed & BUTTON_L1));
|
||||||
|
@ -108,7 +108,7 @@ void newPin(void)
|
|||||||
while(HID_PAD & PIN_BUTTONS);
|
while(HID_PAD & PIN_BUTTONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void verifyPin(PINData *in, bool allowQuit)
|
void verifyPin(PINData *in)
|
||||||
{
|
{
|
||||||
initScreens();
|
initScreens();
|
||||||
|
|
||||||
@ -131,8 +131,8 @@ void verifyPin(PINData *in, bool allowQuit)
|
|||||||
}
|
}
|
||||||
while(!(pressed & PIN_BUTTONS));
|
while(!(pressed & PIN_BUTTONS));
|
||||||
|
|
||||||
pressed &= PIN_BUTTONS;// & ~BUTTON_START;
|
pressed &= PIN_BUTTONS & ~BUTTON_START;
|
||||||
if(!allowQuit) pressed &= ~BUTTON_START;
|
|
||||||
if(!pressed) continue;
|
if(!pressed) continue;
|
||||||
|
|
||||||
if(pressed & BUTTON_START) mcuPowerOff();
|
if(pressed & BUTTON_START) mcuPowerOff();
|
||||||
|
@ -43,4 +43,4 @@ typedef struct __attribute__((packed))
|
|||||||
|
|
||||||
bool readPin(PINData* out);
|
bool readPin(PINData* out);
|
||||||
void newPin(void);
|
void newPin(void);
|
||||||
void verifyPin(PINData *in, bool allowQuit);
|
void verifyPin(PINData *in);
|
Reference in New Issue
Block a user