lv_label_set_text(label,str);
fac_gps_mode_set(1);
+ lv_factory_obj_ext_t * ext_fac = factorymode_get_ext();
+ if(NULL != ext_fac)
+ {
+ ext_fac->module = AUTOTEST_GPS;
+ ext_fac->label_prompt = label;
+ }
+
gps_core.force_on=0;
gps_send_msg(GPS_MSG_STOP);
gps_core.force_on=1;
} else if(ext->module == AUTOTEST_VIBRATION) {
Hal_Vibrator_Play_End();
}
+ else if(ext->module == AUTOTEST_GPS)
+ {
+ #if USE_GPS
+ gps_core.force_on=0;
+ gps_send_msg(GPS_MSG_STOP);
+ fac_gps_mode_set(0);
+ #endif
+ }
ext->module = AUTOTEST_MAX;
if(TEST_AGING == ext->testmode) {
} else if(num == AUTOTEST_VIBRATION) {
Hal_Vibrator_Play_End();
}
+ else if(AUTOTEST_GPS == num)
+ {
+ #if USE_GPS
+ gps_core.force_on=0;
+ gps_send_msg(GPS_MSG_STOP);
+ fac_gps_mode_set(0);
+ #endif
+ }
if(ext->testmode == TEST_AUTO) {
ext->test_res[num] = TEST_FAILED;
} else if(num == AUTOTEST_VIBRATION) {
Hal_Vibrator_Play_End();
}
+ else if(AUTOTEST_GPS == num)
+ {
+ #if USE_GPS
+ gps_core.force_on=0;
+ gps_send_msg(GPS_MSG_STOP);
+ fac_gps_mode_set(0);
+ #endif
+ }
if(ext->testmode == TEST_AUTO) {
ext->test_res[num] = TEST_SUCCESS;