From b73f32bc8ad86a7bb5f0739ac0fd7aa4c04cce98 Mon Sep 17 00:00:00 2001 From: yy1717 <fctom1215@outlook.com> Date: 星期三, 25 三月 2020 19:00:06 +0800 Subject: [PATCH] 加减档 --- lib/src/main/cpp/driver_test.cpp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/lib/src/main/cpp/driver_test.cpp b/lib/src/main/cpp/driver_test.cpp index 57a835f..ca85d04 100644 --- a/lib/src/main/cpp/driver_test.cpp +++ b/lib/src/main/cpp/driver_test.cpp @@ -551,6 +551,9 @@ if (start == 0) { DEBUG("缁撴潫鑰冭瘯"); + + TerminateRoadExam(); + CurrExamMapIndex = -1; ExamStart = false; MA_SendExamStatus(0, 0); @@ -813,7 +816,7 @@ if (ReadCarStatus(ENGINE_START) == ENGINE_START_ACTIVE) { if (!engineStart) { engineStart = true; - if (ReadCarStatus(GEAR) != 'N') { + if (ReadCarStatus(GEAR) != GEAR_N) { // 涓嶆槸绌烘尅鐐圭伀锛屼笉鍚堟牸 if (ExamType == TEST_TYPE_AREA) AddExamFault(3, rtkTime); -- Gitblit v1.8.0