teamALI / Mbed 2 deprecated RubyHwTest2

Dependencies:   mbed

Revision:
3:6898c5bd7fef
Parent:
2:ff609fd0c51a
diff -r ff609fd0c51a -r 6898c5bd7fef uart.cpp
--- a/uart.cpp	Mon Aug 20 07:58:27 2018 +0000
+++ b/uart.cpp	Mon Aug 20 08:51:01 2018 +0000
@@ -37,10 +37,9 @@
     sp.printf("\r\n");
     sp.printf("%s\r\n" , msgBuf);
     
-    if(strcmp(msgBuf , "i")==0 ){ 
-        motorUp();
-    }
-    
+    if(strcmp(msgBuf , "up")==0 ){ motorTestUp();}
+    if(strcmp(msgBuf , "dn")==0 ){ motorTestDown();}
+    if(strcmp(msgBuf , "i")==0 ){ motorUp();}
     if(strcmp(msgBuf , "x")==0 ){ motorStop();}
     
     //バッファクリア