From 7c66884c800b0b48c2b3aac2ac29ff0b4529b95e Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期二, 21 一月 2020 15:00:12 +0800
Subject: [PATCH] updatecrrDOC1

---
 lib/src/main/cpp/rtk_module/rtk.cpp |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/lib/src/main/cpp/rtk_module/rtk.cpp b/lib/src/main/cpp/rtk_module/rtk.cpp
index 4d6ae49..f753214 100644
--- a/lib/src/main/cpp/rtk_module/rtk.cpp
+++ b/lib/src/main/cpp/rtk_module/rtk.cpp
@@ -202,14 +202,17 @@
         }*/
 
         if (RxBufLen > 0) {
-            const uint8_t *ptr = parseGPS(RxBuf, RxBuf + RxBufLen);
-            if(ptr != RxBuf) {
-                memcpy(RxBuf, ptr, RxBufLen - (ptr - RxBuf));
-                RxBufLen -= ptr - RxBuf;
-            } else if(RxBufLen == PARSE_BUFF_SIZE) {        //濉弧浜嗭紝涓旀病鏈変竴涓猏r锛岄兘鎶涘純
-                DEBUG("Parse GPS error");
-                RxBufLen = 0;
-            }
+//            const uint8_t *ptr = parseGPS(RxBuf, RxBuf + RxBufLen);
+//            if(ptr != RxBuf) {
+//                memcpy(RxBuf, ptr, RxBufLen - (ptr - RxBuf));
+//                RxBufLen -= ptr - RxBuf;
+//            } else if(RxBufLen == PARSE_BUFF_SIZE) {        //濉弧浜嗭紝涓旀病鏈変竴涓猏r锛岄兘鎶涘純
+//                DEBUG("Parse GPS error");
+//                RxBufLen = 0;
+//            }
+
+
+            RxBufLen = 0;           /////////////////////////////
         }
     }
     if (res == 0) {

--
Gitblit v1.8.0