Damian Herman / Mbed 2 deprecated NetrunnerMain

Dependencies:   mbed

Revision:
4:cc391b3f3e57
Parent:
3:def8a92db030
Child:
5:1afe17a20a5b
--- a/main.cpp	Wed Jun 24 09:26:07 2015 +0000
+++ b/main.cpp	Tue Aug 04 09:05:16 2015 +0000
@@ -1,7 +1,8 @@
 #include "mbed.h"
 #include "include/EngineDriver.h"
 #include "include/SerialPrompt.h"
-Serial pc(SERIAL_TX, SERIAL_RX);
+Serial pc(USBTX, USBRX);
+
 int initDrivingUnit(int testLoops)
 {
         pc.printf("Testing engines...\n\r");
@@ -18,12 +19,13 @@
 }
 int main()
 {
-    if(initDrivingUnit(1) == 0)
-    {
-        pc.printf("Ready to accept commands.\n\r");
-        displayPrompt(&pc);
-    }
+   // if(initDrivingUnit(1) == 0)
+ //   {
+   //     pc.printf("Ready to accept commands.\n\r");
+ //       displayPrompt(&pc);
+  //  }
     while (true) 
     {
+        int action = getMenuInput(&pc);
     }
 }
\ No newline at end of file