No need for this

This commit is contained in:
Aurora 2016-08-15 13:37:23 +02:00
parent 7ab59e420a
commit 5248b96f8a
2 changed files with 1 additions and 6 deletions

View File

@ -138,11 +138,7 @@ void verifyPin(PINData *in, bool allowQuit)
if(!allowQuit) pressed &= ~BUTTON_START;
if(!pressed) continue;
if(pressed & BUTTON_START)
{
clearScreens();
mcuPowerOff();
}
if(pressed & BUTTON_START) mcuPowerOff();
char key = PINKeyToLetter(pressed);
enteredPassword[cnt++] = (u8)key; // add character to password.

View File

@ -110,7 +110,6 @@ void chrono(u32 seconds)
void error(const char *message)
{
initScreens();
clearScreens();
drawString("An error has occurred:", 10, 10, COLOR_RED);
int posY = drawString(message, 10, 30, COLOR_WHITE);