Motoo Tanaka
/
KL25Z_UART_EDGE_180116
Test Program for Multi Adapter
Revision 3:8038e02a72df, committed 2018-01-16
- Comitter:
- Rhyme
- Date:
- Tue Jan 16 07:40:34 2018 +0000
- Parent:
- 2:9f4eff106f89
- Commit message:
- printf bug fixed
Changed in this revision
edge.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9f4eff106f89 -r 8038e02a72df edge.cpp --- a/edge.cpp Tue Jan 16 07:05:47 2018 +0000 +++ b/edge.cpp Tue Jan 16 07:40:34 2018 +0000 @@ -70,15 +70,15 @@ { char c = 0xFF ; printf("Waiting for ACK ") ; - for (int i = 0 ; i < 10 ; i++ ) { + for (int i = 0 ; i < 3 ; i++ ) { if (tty->readable()) { c = tty->getc() ; } else { - tty->putc(DOT) ; + printf(".") ; } wait(1) ; } - tty->putc(SPACE) ; + printf(" ") ; if (c == ACK) { printf("ACK received\n") ; } else {