Skip to content

Commit

Permalink
fix password bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
7134956 committed Dec 15, 2015
1 parent b7121f0 commit 115be01
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,13 @@ void newState() {
if (stateMainPrev == STATE_SLEEP)
initMCU(stateMain);
dateTime_p = timeGetSet(NULL); //Настроим указатель на дату, время.
if (state.taskList & TASK_TIMESETUP) {
stateMain = STATE_SETUP;
changePos(0, 1, 1, ACTION_IS);
mtk_SetRootElement(&mtkDate);
mtk_SelectElement(1);
state.taskList &= ~ TASK_TIMESETUP;
}
}
break;
case STATE_SETUP: {
Expand All @@ -291,13 +298,6 @@ void newState() {
case STATE_START: {
if ((stateMainPrev == STATE_NULL) || (stateMainPrev == STATE_MAIN))
initMCU(stateMain);
if (state.taskList & TASK_TIMESETUP) {
stateMain = STATE_SETUP;
changePos(0, 1, 1, ACTION_IS);
mtk_SetRootElement(&mtkDate);
mtk_SelectElement(1);
state.taskList &= ~ TASK_TIMESETUP;
}
}
break;
case STATE_SLEEP:
Expand Down

0 comments on commit 115be01

Please sign in to comment.