From 79f2500657c85c84aceed46ec00f9a703eae395b Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期二, 31 三月 2020 14:55:22 +0800
Subject: [PATCH] 坡道坐标修正、发往主进程的消息线程独立

---
 lib/src/main/cpp/test_items2/dummy_light.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/src/main/cpp/test_items2/dummy_light.cpp b/lib/src/main/cpp/test_items2/dummy_light.cpp
index 81a3a02..56aaa05 100644
--- a/lib/src/main/cpp/test_items2/dummy_light.cpp
+++ b/lib/src/main/cpp/test_items2/dummy_light.cpp
@@ -59,7 +59,7 @@
 void DummyLightTTSDone(int id)
 {
     // 绛夎闊虫挱鎶ュ畬姣曞悗璁℃椂
-    if (id == examTtsSeq) {
+    if (id == examTtsSeq && testing) {
         DEBUG("DummyLightTTSDone %d", id);
         for (int i = 0; i < contentNum; ++i) {
             if (content[i].itemStatus == TTS_DOING) {
@@ -74,6 +74,7 @@
 
 void TerminateDummyLightExam(void)
 {
+    testing = false;
     AppTimer_delete(DummyLightCheckActive);
     AppTimer_delete(ExamDummyLight);
 }

--
Gitblit v1.8.0