Преглед изворни кода

change decode data into timer

jiaolili пре 3 година
родитељ
комит
98a8097a07
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/v2x/CommunicatePlatform/radio.cpp

+ 2 - 1
src/v2x/CommunicatePlatform/radio.cpp

@@ -187,6 +187,7 @@ void Radio::heartBeat()
         if(m_bSerialOpen==false) {
             openSerial();
         } else {
+            decodeData();
             upDataStream();
             //if no answer,shake hands three times
             if(m_iResponse!=-1) {
@@ -401,7 +402,7 @@ void Radio::receiveData()
     _ba.clear();
     _ba = m_serialPort_Radio->readAll();
     m_data.append(_ba);
-    decodeData();
+    //decodeData();
 
 //    if(m_iAppend==-1) {
 //        qint64 rLen = m_serialPort_Radio->bytesAvailable();