| | |
| | | |
| | | 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); |
| | |
| | | for (int i = 0; i < n; i++) { |
| | | DummyLightContent[i] = cfg[i]; |
| | | } |
| | | |
| | | StartDummyLightExam(DummyLightContent, DummyLightContentSize); |
| | | } |
| | | |
| | | void StartDriverExam(int start, int type) |
| | |
| | | DEBUG("++++++++++++考试启动 start %d type %d+++++++++++++", start, type); |
| | | |
| | | if (start == 0) { |
| | | DEBUG("结束考试"); |
| | | // CurrExamMapIndex = -1; |
| | | // TestStart = false; |
| | | // CommTestStart(false); |
| | |
| | | |
| | | if (!err) { |
| | | if (!TestStart) { |
| | | DEBUG("启动考试"); |
| | | ExamFaultList.clear(); |
| | | examFaultIndex = 0; |
| | | |