Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: uart.cpp
- Revision:
- 2:ff609fd0c51a
- Parent:
- 1:c002cfb55315
- Child:
- 3:6898c5bd7fef
diff -r c002cfb55315 -r ff609fd0c51a uart.cpp
--- a/uart.cpp Mon Aug 20 07:37:12 2018 +0000
+++ b/uart.cpp Mon Aug 20 07:58:27 2018 +0000
@@ -11,7 +11,6 @@
static char msgBuf[63] ={0,} ;//
static UCHAR bp =0 ;// バッファポインタ
-//int value = 0;
DigitalOut led4(LED4);
//-------------------------------------------------------------
@@ -39,13 +38,10 @@
sp.printf("%s\r\n" , msgBuf);
if(strcmp(msgBuf , "i")==0 ){
- //value += 10;
- //if (value<250){
- motorUp();
- //}
+ motorUp();
}
- if(strcmp(msgBuf , "x")==0 ){ motorStop(value);}
+ if(strcmp(msgBuf , "x")==0 ){ motorStop();}
//バッファクリア
bufClear();