From 9ca8ca86beb09186ff3aecefceeddaea80b2409f Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期三, 26 二月 2020 17:31:00 +0800
Subject: [PATCH] 更新地图

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

diff --git a/lib/src/main/cpp/rtk_module/rtk.cpp b/lib/src/main/cpp/rtk_module/rtk.cpp
index fce0093..bb5e332 100644
--- a/lib/src/main/cpp/rtk_module/rtk.cpp
+++ b/lib/src/main/cpp/rtk_module/rtk.cpp
@@ -202,17 +202,18 @@
         }*/
 
         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;
-//            }
-
-
+#if 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;
+            }
+#else
             RxBufLen = 0;           //PC妯℃嫙鐢ㄦ椂
+#endif
         }
     }
     if (res == 0) {

--
Gitblit v1.8.0