From 6c7f9e67fdcb882725d2790279fe9d99fb343c06 Mon Sep 17 00:00:00 2001 From: yy1717 <fctom1215@outlook.com> Date: 星期四, 12 三月 2020 17:39:37 +0800 Subject: [PATCH] 更新传感器 --- lib/src/main/cpp/test_items2/common_check.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/main/cpp/test_items2/common_check.cpp b/lib/src/main/cpp/test_items2/common_check.cpp index e572c16..d4e483b 100644 --- a/lib/src/main/cpp/test_items2/common_check.cpp +++ b/lib/src/main/cpp/test_items2/common_check.cpp @@ -3,7 +3,7 @@ // #include "common_check.h" -#include "../test_items/comm_test.h" +#include "../test_common/car_sensor.h" #include "../driver_test.h" // 鐢变汉宸ョ‘璁� @@ -20,12 +20,12 @@ if (prevMoveDirect == 0) { // 璧锋鎸傞敊鎸★紝涓嶅悎鏍� - if (CheckSensorX(SHIFT) != '1') { + if (ReadSensor(SENSOR_SHIFT_1) != 1) { AddExamFault(19, rtkTime); } // 璧锋娌℃湁鍏抽棴杞﹂棬锛屼笉鍚堟牸 - if (CheckSensorX(DOOR) != 1) { + if (ReadSensor(SENSOR_DOOR) != 1) { AddExamFault(23, rtkTime); } -- Gitblit v1.8.0