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/test_items/stop_and_start.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/src/main/cpp/test_items/stop_and_start.cpp b/lib/src/main/cpp/test_items/stop_and_start.cpp
index 980b782..0acc552 100644
--- a/lib/src/main/cpp/test_items/stop_and_start.cpp
+++ b/lib/src/main/cpp/test_items/stop_and_start.cpp
@@ -11,6 +11,7 @@
 #include "../jni_log.h"
 #include "../common/apptimer.h"
 #include "../utils/xconvert.h"
+#include "../test_common/car_sensor.h"
 
 #define DEBUG(fmt, args...)     LOGD("<stop_and_start> <%s>: " fmt, __func__, ##args)
 
@@ -121,7 +122,7 @@
             }
 
             // 妫�鏌ユ槸鍚︽媺浣忔墜鍒�
-            if (true) {
+            if (ReadCarStatus(HAND_BREAK) != BREAK_ACTIVE) {
                 AddExamFault(19, rtkTime);
                 DEBUG("娌℃媺鎵嬪埞");
             }

--
Gitblit v1.8.0