From e5e41dec2d41651c7160662ecf43325d49b07b66 Mon Sep 17 00:00:00 2001
From: fctom1215 <fctom1215@outlook.com>
Date: 星期二, 10 三月 2020 21:51:00 +0800
Subject: [PATCH] 模拟夜间考试。
---
lib/src/main/cpp/driver_test.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/src/main/cpp/driver_test.cpp b/lib/src/main/cpp/driver_test.cpp
index 94a5278..d795059 100644
--- a/lib/src/main/cpp/driver_test.cpp
+++ b/lib/src/main/cpp/driver_test.cpp
@@ -374,9 +374,9 @@
void SetDummyLightExam(int n, struct dummy_light_exam *cfg)
{
- DEBUG("鑾峰彇妯℃嫙璺�冪伅鍏夋祴璇曢」鐩�");
+ DEBUG("鑾峰彇妯℃嫙璺�冪伅鍏夋祴璇曢」鐩� N = %d %d", n, TestStart);
- if (TestStart) return;
+// if (TestStart) return;
if (DummyLightContent != NULL) {
free(DummyLightContent);
@@ -389,6 +389,8 @@
for (int i = 0; i < n; i++) {
DummyLightContent[i] = cfg[i];
}
+
+ StartDummyLightExam(DummyLightContent, DummyLightContentSize);
}
void StartDriverExam(int start, int type)
@@ -397,6 +399,7 @@
DEBUG("++++++++++++鑰冭瘯鍚姩 start %d type %d+++++++++++++", start, type);
if (start == 0) {
+ DEBUG("缁撴潫鑰冭瘯");
// CurrExamMapIndex = -1;
// TestStart = false;
// CommTestStart(false);
@@ -419,6 +422,7 @@
if (!err) {
if (!TestStart) {
+ DEBUG("鍚姩鑰冭瘯");
ExamFaultList.clear();
examFaultIndex = 0;
--
Gitblit v1.8.0