From 00bcaaadf18eda942b0e1b86a05e7280a57bcb52 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期一, 22 二月 2021 13:33:18 +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 fcdfd30..c7af63d 100644
--- a/lib/src/main/cpp/rtk_module/virtual_rtk.cpp
+++ b/lib/src/main/cpp/rtk_module/virtual_rtk.cpp
@@ -113,13 +113,15 @@
PlayTTS("妯℃嫙鍣ㄨ繛鎺�", NULL);
} else {
DEBUG("铏氭嫙骞冲彴杩炴帴澶辫触");
+ if (virtRtkIsValid) {
+ PlayTTS("妯℃嫙鍣ㄦ柇寮�", NULL);
+ }
virtRtkIsValid = false;
connectCnt++;
if (connectCnt < 3) {
AppTimer_add(ConnectLater, D_SEC(3), 1);
}
- PlayTTS("妯℃嫙鍣ㄦ柇寮�", NULL);
}
}
@@ -155,13 +157,15 @@
PlayTTS("鐏厜妯℃嫙鍣ㄨ繛鎺�", NULL);
} else {
DEBUG("鐏厜铏氭嫙骞冲彴杩炴帴澶辫触");
+ if (virtRtkIsValid2) {
+ PlayTTS("鐏厜妯℃嫙鍣ㄦ柇寮�", NULL);
+ }
virtRtkIsValid2 = false;
connectCnt2++;
if (connectCnt2 < 3) {
AppTimer_add(ConnectLater2, D_SEC(3), 2);
}
- PlayTTS("鐏厜妯℃嫙鍣ㄦ柇寮�", NULL);
}
}
--
Gitblit v1.8.0