Library used during 1 day workshops presented by Skool and ARM Hungary in 2015.
Fork of Skool_wkshp_lib2015 by
Diff: menu.cpp
- Revision:
- 1:68d1a8c4970b
- Parent:
- 0:3ad0af8abf43
--- a/menu.cpp Fri Sep 25 13:48:39 2015 +0000 +++ b/menu.cpp Thu Oct 01 19:17:25 2015 +0000 @@ -53,7 +53,7 @@ MainMenu_CurrentItem = 0; ShowMainMenuItem(MainMenu_CurrentItem); - while ((isexit == 0) | (Main_FSM_States != FINISH)) { + while ((isexit == 0) & (Main_FSM_States != FINISH)) { keypress = Poll_keypad_vert(); switch (keypress) { case 0x01: MainMenu_CurrentItem = ((MainMenu_CurrentItem == 0) ? 0 : MainMenu_CurrentItem - 1); @@ -66,6 +66,7 @@ ShowMainMenuItem(MainMenu_CurrentItem); break; case 0x0E: isexit = 1; + Main_FSM_States = FINISH; break; default: break; }