Skip to content

Commit 4f8c66b

Browse files
committed
There would not be an use for this
1 parent 4d9cbc4 commit 4f8c66b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

source/firm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void main(void)
135135
bool pinExists = CONFIG(7) && readPin(&pin);
136136

137137
//If we get here we should check the PIN (if it exists) in all cases
138-
if(pinExists) verifyPin(&pin, true);
138+
if(pinExists) verifyPin(&pin);
139139

140140
//If no configuration file exists or SELECT is held, load configuration menu
141141
bool shouldLoadConfigurationMenu = needConfig == CREATE_CONFIGURATION || ((pressed & BUTTON_SELECT) && !(pressed & BUTTON_L1));

source/pin.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void newPin(void)
108108
while(HID_PAD & PIN_BUTTONS);
109109
}
110110

111-
void verifyPin(PINData *in, bool allowQuit)
111+
void verifyPin(PINData *in)
112112
{
113113
initScreens();
114114

@@ -131,8 +131,8 @@ void verifyPin(PINData *in, bool allowQuit)
131131
}
132132
while(!(pressed & PIN_BUTTONS));
133133

134-
pressed &= PIN_BUTTONS;// & ~BUTTON_START;
135-
if(!allowQuit) pressed &= ~BUTTON_START;
134+
pressed &= PIN_BUTTONS & ~BUTTON_START;
135+
136136
if(!pressed) continue;
137137

138138
if(pressed & BUTTON_START) mcuPowerOff();

source/pin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ typedef struct __attribute__((packed))
4343

4444
bool readPin(PINData* out);
4545
void newPin(void);
46-
void verifyPin(PINData *in, bool allowQuit);
46+
void verifyPin(PINData *in);

0 commit comments

Comments
 (0)