nakagawa kit emurator (add CR) BaudRate 115200,p20

Dependencies:   mbed NetServicesMin

Files at this revision

API Documentation at this revision

Comitter:
recotana
Date:
Tue Apr 17 04:14:27 2012 +0000
Parent:
3:51e64f5e42b8
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 51e64f5e42b8 -r 9daa308155d6 main.cpp
--- a/main.cpp	Tue Apr 17 03:38:00 2012 +0000
+++ b/main.cpp	Tue Apr 17 04:14:27 2012 +0000
@@ -16,7 +16,7 @@
 
     uint8_t *d=(uint8_t *)&data->ftype;
     
-    for(uint8_t i=0 ; i<67 ; i++){
+    for(uint8_t i=0 ; i<(sizeof(Frame)+sizeof(Ftype)) ; i++){
     
        if(d[i]==0x0A)   pc.putc(0x0D); //add CR LF
         pc.putc(d[i]);