TVZ test

Dependencies:   mbed

Revision:
6:be9abe81bbd1
Parent:
5:77ff08b129c0
Child:
7:08f81f5b4760
--- a/main.cpp	Thu Feb 13 16:07:56 2014 +0000
+++ b/main.cpp	Fri Feb 14 14:51:36 2014 +0000
@@ -126,12 +126,19 @@
                 Outbuff[i] = *pointnavar ;
                 pointnavar++;
             }
-            Outbuff[6]= 5;  // checksum
+            Outbuff[6]=0;           // checksum
+            for (int i=0; i<6; i++)
+                {  Outbuff[6] += Outbuff[i];            
+                }
+             
 
             for (int i=0; i<7; i++) {
                 while (async_port.writeable()==0);  //is there a place to write?
                 async_port.putc(Outbuff[i]);       //transmit byte
             }
+            RXDIN = 1;
+            wait(1);
+            RXDIN = 0;
 
 
         } // else