Skip to content

Commit

Permalink
There would not be an use for this
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraWright committed Aug 16, 2016
1 parent 4d9cbc4 commit 4f8c66b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/firm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
6 changes: 3 additions & 3 deletions source/pin.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void newPin(void)
while(HID_PAD & PIN_BUTTONS);
}

void verifyPin(PINData *in, bool allowQuit)
void verifyPin(PINData *in)
{
initScreens();

Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion source/pin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 4f8c66b

Please sign in to comment.