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:
- 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();}
//バッファクリア