fctom1215
2020-03-10 10c6d47260b4fb34262ec7a703a06fffa6a90ad0
lib/src/main/cpp/driver_test.cpp
@@ -59,7 +59,14 @@
    TEST_END
};
enum {
    TEST_TYPE_AREA = 2,
    TEST_TYPE_ROAD_DUMMY_LIGHT,
    TEST_TYPE_ROAD_TRUE_LIGHT
};
static bool TestStart = false;
static int TestType;
static int CarInArea = 0;
int errs = 0;
@@ -406,7 +413,7 @@
        err = true;
        MA_SendExamStatus(0, -2);
    }
    if (DummyLightContent == NULL && type == 3) {
    if (DummyLightContent == NULL && type == TEST_TYPE_ROAD_DUMMY_LIGHT) {
        err = true;
        MA_SendExamStatus(0, -3);
    }
@@ -418,6 +425,10 @@
            TestStart = true;
            CommTestStart(true);
            if (type == TEST_TYPE_ROAD_DUMMY_LIGHT) {
                StartDummyLightExam(DummyLightContent, DummyLightContentSize);
            }
        }
        MA_SendExamStatus(1, 0);
    }