AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Revision:
21:f4e556dc9885
Parent:
19:2eba101d9c2c
--- a/games/GameSelector.cpp	Sun May 24 19:28:04 2015 +0000
+++ b/games/GameSelector.cpp	Sun May 24 19:29:28 2015 +0000
@@ -20,11 +20,7 @@
 
 int GameSelector::select(){
     print_list();
-    while(selected_game == -1){
-        if(update_screen){
-            print_list();    
-        }
-    } // wait until selection is done
+    while(selected_game == -1){} // wait until selection is done
     return selected_game;
 }
 
@@ -32,14 +28,12 @@
     switch(c){
         case '2':
             go_up();
-            update_screen = true;
             break;
         case '5':
             selected_game = current_selection;
             break;
         case '8':
             go_down();
-            update_screen = true;
             break;
         default:
             break;  
@@ -83,7 +77,7 @@
     if(current_selection - start_position >= 4){
         start_position = current_selection - 3;
     }
-    //print_list();
+    print_list();
 }
 
 void GameSelector::go_up(){
@@ -93,5 +87,5 @@
     if(current_selection - start_position < 0){
         start_position = current_selection;
     }
-    //print_list();
+    print_list();
 }