From dc2a01d4764efd33a23afcaf4f1d7543dc35c4fa Mon Sep 17 00:00:00 2001
From: fctom1215 <fctom1215@outlook.com>
Date: 星期三, 19 二月 2020 15:32:57 +0800
Subject: [PATCH] 上坡地图修正

---
 lib/src/main/cpp/rtk_module/rtk.cpp |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

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

--
Gitblit v1.8.0