1.gps发送更改;2.修改发送标识
This commit is contained in:
parent
381c3a282a
commit
3560751dcf
|
@ -1080,12 +1080,12 @@ static SINT32 app_file_transfer(SF_FN_PARAM_S *pfnParam) {
|
||||||
if (sf_usb_IsInsert())
|
if (sf_usb_IsInsert())
|
||||||
return SF_SUCCESS;
|
return SF_SUCCESS;
|
||||||
|
|
||||||
sf_4G_status_set(SF_4G_SENDING);
|
|
||||||
SLOGD("STARTUP:[%d]\n", sf_poweron_type_get());
|
SLOGD("STARTUP:[%d]\n", sf_poweron_type_get());
|
||||||
if (sf_get_cq_signal() == 0) {
|
if (sf_get_cq_signal() == 0) {
|
||||||
SLOGD("no csq signal\n");
|
SLOGD("no csq signal\n");
|
||||||
return SF_SUCCESS;
|
return SF_SUCCESS;
|
||||||
}
|
}
|
||||||
|
sf_4G_status_set(SF_4G_SENDING);
|
||||||
|
|
||||||
switch (sf_poweron_type_get()) {
|
switch (sf_poweron_type_get()) {
|
||||||
case SF_MCU_STARTUP_OFF:
|
case SF_MCU_STARTUP_OFF:
|
||||||
|
@ -2150,7 +2150,6 @@ int get_gps_location(void)
|
||||||
strcpy(pCustomerParam->Latitude, location.latitude);
|
strcpy(pCustomerParam->Latitude, location.latitude);
|
||||||
LogInfo("location.Longitude = %s\n", pCustomerParam->Longitude);
|
LogInfo("location.Longitude = %s\n", pCustomerParam->Longitude);
|
||||||
LogInfo("location.Latitude = %s\n", pCustomerParam->Latitude);
|
LogInfo("location.Latitude = %s\n", pCustomerParam->Latitude);
|
||||||
sf_save_camera_gps_info();
|
|
||||||
return GPS_GET_SUCCEED;
|
return GPS_GET_SUCCEED;
|
||||||
}
|
}
|
||||||
return GPS_GET_FAILED;
|
return GPS_GET_FAILED;
|
||||||
|
@ -2195,6 +2194,7 @@ void keep_get_gps_location(const SF_GPS_PARAM param)
|
||||||
{
|
{
|
||||||
NET_SLOGI("FristSendDaily:%d\n", puiPara->FristSendDailyAndGps);
|
NET_SLOGI("FristSendDaily:%d\n", puiPara->FristSendDailyAndGps);
|
||||||
sf_set_send_gps_txt(1);
|
sf_set_send_gps_txt(1);
|
||||||
|
sf_save_camera_gps_info();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else //if((puiPara->GpsNumber == 1) && (puiPara->GpsSendFlag != 0))
|
else //if((puiPara->GpsNumber == 1) && (puiPara->GpsSendFlag != 0))
|
||||||
|
@ -2340,13 +2340,13 @@ void sf_save_camera_gps_info(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(temp,'\0', 200);
|
memset(temp,'\0', 200);
|
||||||
sprintf(temp, "LATITUDE:%s\r\nLONGITUDE:%s\r\n", puiPara->Latitude, puiPara->Longitude);
|
snprintf(temp, 200, "LATITUDE:%s\r\nLONGITUDE:%s\r\n", puiPara->Latitude, puiPara->Longitude);
|
||||||
|
|
||||||
printf("[%s:%d] \n%s\n", __FUNCTION__, __LINE__,temp);
|
printf("[%s:%d] \n%s\n", __FUNCTION__, __LINE__,temp);
|
||||||
|
|
||||||
if(access((char*)SF_CAMERA_GPS_INFO_FILENAME, F_OK) == 0)
|
if(access((char*)SF_CAMERA_GPS_INFO_FILENAME, F_OK) == 0)
|
||||||
{
|
{
|
||||||
system("rm -rf /mnt/sd/gps.txt");
|
system("rm -rf /tmp/gps.txt");
|
||||||
system("sync");
|
system("sync");
|
||||||
printf("[%s:%d] rm\n", __FUNCTION__, __LINE__);
|
printf("[%s:%d] rm\n", __FUNCTION__, __LINE__);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user