Treehouse Mbed Team / Mbed 2 deprecated APS_1U5x

Dependencies:   mbed

Revision:
12:fd1fd1857628
Parent:
11:01dcfb29fbc4
Child:
14:e55ae9bb2a81
--- a/src/main.cpp	Fri Dec 07 20:42:41 2018 +0000
+++ b/src/main.cpp	Sat Dec 08 01:53:36 2018 +0000
@@ -45,6 +45,8 @@
 unsigned int loopTime = 0;
 bool raw = FALSE;
 bool running = FALSE;
+bool testing = FALSE;
+bool buck = TRUE;
 
 Timer masterTimer;
 
@@ -89,9 +91,13 @@
       }
       
       if(running){
-          updateControls(avals.i12);
+          if(buck){
+            updateControls(avals.i12);
+          }else{
+            updateControls(avals.i48);
+          }
           //count++;
-      }else{
+      }else if(!testing){
           updateControls(my12);
       }
    }//end while(1)