From 683b1595260e638d1d3c6cc0d6543a72f6d6f925 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期二, 12 一月 2021 14:36:42 +0800
Subject: [PATCH] 扣分码标准化

---
 lib/src/main/cpp/rtk_module/virtual_rtk.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/src/main/cpp/rtk_module/virtual_rtk.cpp b/lib/src/main/cpp/rtk_module/virtual_rtk.cpp
index 83dee44..b0e62e5 100644
--- a/lib/src/main/cpp/rtk_module/virtual_rtk.cpp
+++ b/lib/src/main/cpp/rtk_module/virtual_rtk.cpp
@@ -86,7 +86,7 @@
         DEBUG("铏氭嫙骞冲彴杩炴帴鎴愬姛");
         virtRtkIsValid = true;
         connectCnt = 0;
-//        PlayTTS("妯℃嫙鍣ㄨ繛鎺�", NULL);
+        PlayTTS("妯℃嫙鍣ㄨ繛鎺�", NULL);
     } else {
         DEBUG("铏氭嫙骞冲彴杩炴帴澶辫触");
     }
@@ -110,7 +110,9 @@
                 break;
             } else if (lx > 0) {
                 RxBufLen += lx;
+
                 const uint8_t *ptr = parseGPS(RxBuf, RxBuf + RxBufLen);
+
                 if(ptr != RxBuf) {
                     memcpy(RxBuf, ptr, RxBufLen - (ptr - RxBuf));
                     RxBufLen -= ptr - RxBuf;
@@ -123,7 +125,9 @@
     }
 
     if (fd > 0) {
+        DEBUG("铏氭嫙骞冲彴鏂紑");
         DisconnectTCP(fd);
+        PlayTTS("妯℃嫙鍣ㄦ柇寮�", NULL);
     }
     virtRtkIsValid = false;
 
@@ -131,7 +135,7 @@
         AppTimer_add(ConnectLater, D_SEC(3));
     }
 
-//    PlayTTS("妯℃嫙鍣ㄦ柇寮�", NULL);
+    DEBUG("铏氭嫙骞冲彴绾跨▼閫�鍑�");
 
     pthread_exit(NULL);
 }

--
Gitblit v1.8.0