Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
39:ca77a6d574e6
Parent:
37:6a2bf4488022
--- a/settings/settings.cpp	Tue May 07 10:40:26 2019 +0000
+++ b/settings/settings.cpp	Tue May 07 15:20:16 2019 +0000
@@ -17,8 +17,7 @@
     if(x_dir.read() > joy_threshold_max_x){
         current_page -= 1;
         wait_ms(time_delay);    
-    } 
-    else if (x_dir.read() < joy_threshold_min_x){
+    } else if (x_dir.read() < joy_threshold_min_x){
         current_page += 1;
         wait_ms(time_delay); 
     }
@@ -28,8 +27,6 @@
     if (current_page >= total_pages) {
         current_page -= total_pages;
     }  
-
-    
     if (current_page == 0){ settingsPage0();}
     else if (current_page == 1){ settingsPage1();}
     
@@ -37,7 +34,8 @@
     lcd.printString("Use the Pot",0,4);
     bool back_to_menu = false; 
     if (gamepad.check_event(gamepad.B_PRESSED)){
-        gamepad.check_event(gamepad.B_PRESSED);
+        //gamepad.check_event(gamepad.B_PRESSED);
+        gamepad.check_event(gamepad.A_PRESSED);
         back_to_menu = true; 
     }
     return back_to_menu;