Test1

Dependencies:   mbed

Revision:
15:30e45bd5902e
Parent:
14:b113f676ef42
Child:
16:459ad1bd82fd
diff -r b113f676ef42 -r 30e45bd5902e main.cpp
--- a/main.cpp	Sun Aug 04 14:09:35 2019 +0000
+++ b/main.cpp	Sun Aug 04 15:43:47 2019 +0000
@@ -13,10 +13,14 @@
             //Для дебилов: в mbed типы "int" и "unsigned int" имеют размер 4 байта !!!
             
     while(1) {
-        if ( RxBuffFull == 1 ) { RxBuffFull = 0;
-            StartTx(&RxBuff[0]);
-            StartTx(&RxBuff[0]);
-            if( StartTx(RxBuff) == StartOK)myled = 0 ;else myled = 1;
+        if ( RxBuffFull == 1 ) { 
+            RxBuffFull = 0;
+//            if(GetCheckSum(&RxBuff.cmd) == RxBuff.cs){
+                StartTx(&RxBuff.cmd);
+                StartTx(&RxBuff.cmd);
+                if( StartTx(&RxBuff.cmd) == StartOK)myled = 0 ;else myled = 1;
+//                myled = 0;
+  //              } else myled = 1;
             }
         }//while(1)
 }//main