From ce353dcd92393a8b79a03c04bc03bcfd84944cbd Mon Sep 17 00:00:00 2001 From: fctom1215 <fctom1215@outlook.com> Date: 星期四, 20 二月 2020 11:26:13 +0800 Subject: [PATCH] GPS信息合并到RTK中,以RTK包,发送 --- 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 35ee10b..fce0093 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; //PC妯℃嫙鐢ㄦ椂 + RxBufLen = 0; //PC妯℃嫙鐢ㄦ椂 } } if (res == 0) { -- Gitblit v1.8.0