Myserial Library extends RawSerial
Revision 8:a7aaafa19db6, committed 2014-06-24
- Comitter:
- naao
- Date:
- Tue Jun 24 03:16:30 2014 +0000
- Parent:
- 7:d5fe75a0a885
- Child:
- 9:981384455445
- Commit message:
- adjusted read wait
Changed in this revision
MySerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MySerial.cpp Mon Jun 23 07:47:01 2014 +0000 +++ b/MySerial.cpp Tue Jun 24 03:16:30 2014 +0000 @@ -10,6 +10,8 @@ int ichar; memset(cWord, '\0', strlen(cWord)); //initialise chars + wait(0.01); + while(1) { if(!readable()) { break; @@ -20,7 +22,7 @@ //putc(ichar); } i++; - wait(0.01); + wait(0.001); } return 0; }