No need for this
This commit is contained in:
parent
7ab59e420a
commit
5248b96f8a
@ -138,11 +138,7 @@ void verifyPin(PINData *in, bool allowQuit)
|
|||||||
if(!allowQuit) pressed &= ~BUTTON_START;
|
if(!allowQuit) pressed &= ~BUTTON_START;
|
||||||
if(!pressed) continue;
|
if(!pressed) continue;
|
||||||
|
|
||||||
if(pressed & BUTTON_START)
|
if(pressed & BUTTON_START) mcuPowerOff();
|
||||||
{
|
|
||||||
clearScreens();
|
|
||||||
mcuPowerOff();
|
|
||||||
}
|
|
||||||
|
|
||||||
char key = PINKeyToLetter(pressed);
|
char key = PINKeyToLetter(pressed);
|
||||||
enteredPassword[cnt++] = (u8)key; // add character to password.
|
enteredPassword[cnt++] = (u8)key; // add character to password.
|
||||||
|
@ -110,7 +110,6 @@ void chrono(u32 seconds)
|
|||||||
void error(const char *message)
|
void error(const char *message)
|
||||||
{
|
{
|
||||||
initScreens();
|
initScreens();
|
||||||
clearScreens();
|
|
||||||
|
|
||||||
drawString("An error has occurred:", 10, 10, COLOR_RED);
|
drawString("An error has occurred:", 10, 10, COLOR_RED);
|
||||||
int posY = drawString(message, 10, 30, COLOR_WHITE);
|
int posY = drawString(message, 10, 30, COLOR_WHITE);
|
||||||
|
Reference in New Issue
Block a user