Test Program for Multi Adapter

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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 {