BLEUART

Fork of 0925BLEonly by LAXAN01

Revision:
2:0d84e066f294
Parent:
1:5d6887b45ff6
Child:
3:837f3a27c2f7
--- a/main.cpp	Fri Sep 29 06:57:49 2017 +0000
+++ b/main.cpp	Fri Sep 29 07:31:44 2017 +0000
@@ -78,13 +78,14 @@
         if(((*(params->data))=='<')&&((*(params->data+1))=='S')&&((*(params->data+2))=='>')){ //  <S>    
             lb=0;
             memset(longble,'\0',60);
-            x=3;
+          //  x=3;
             }  
         uint8_t blein[params->len];       
-        for(uint8_t count=0 ; count<((params->len)-x) ; ++count){   //取得藍芽資料
+        for(uint8_t count=0 ; count<((params->len)+x) ; ++count){   //取得藍芽資料
             blein[count]= *((params->data)+count);
             longble[count+lb]= *((params->data)+count+x);
             }
+        //x=0;    
         lb+=(params->len);
         if(lb>110)
         lb=0;