teamALI / Mbed 2 deprecated RubyHwTest2

Dependencies:   mbed

Revision:
1:c002cfb55315
Parent:
0:a8339cee32b7
Child:
2:ff609fd0c51a
diff -r a8339cee32b7 -r c002cfb55315 uart.cpp
--- a/uart.cpp	Mon Aug 20 06:58:42 2018 +0000
+++ b/uart.cpp	Mon Aug 20 07:37:12 2018 +0000
@@ -11,7 +11,7 @@
 static      char   msgBuf[63]  ={0,}    ;// 
 static      UCHAR   bp         =0      ;// バッファポインタ
 
-int value = 0;
+//int value = 0;
 DigitalOut  led4(LED4);
 
 //-------------------------------------------------------------
@@ -39,10 +39,10 @@
     sp.printf("%s\r\n" , msgBuf);
     
     if(strcmp(msgBuf , "i")==0 ){ 
-        value += 10;
-        if (value<250){
-            motorUp(value);
-        }
+        //value += 10;
+        //if (value<250){
+            motorUp();
+        //}
     }
     
     if(strcmp(msgBuf , "x")==0 ){ motorStop(value);}