Minor fork of Yoji KURODA's work to test a fix on a small error.
Fork of iSerial by
Revision 6:8d4b95b90c3b, committed 2012-09-03
- Comitter:
- ykuroda
- Date:
- Mon Sep 03 12:01:55 2012 +0000
- Parent:
- 5:d83fc550ccbc
- Child:
- 7:5a25789c3b55
- Commit message:
- flush added
Changed in this revision
iSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
iSerial.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/iSerial.cpp Mon Sep 03 11:18:05 2012 +0000 +++ b/iSerial.cpp Mon Sep 03 12:01:55 2012 +0000 @@ -158,3 +158,10 @@ } +void +iSerial::flush(void) +{ + while(txbuf.check()); +} + +
--- a/iSerial.h Mon Sep 03 11:18:05 2012 +0000 +++ b/iSerial.h Mon Sep 03 12:01:55 2012 +0000 @@ -43,6 +43,8 @@ short int puts(const char* s); //void printf(); char* printf(const char* format, ...); + + void flush(void); };