1.修复dp发送带一张图;2.调整led

This commit is contained in:
payton 2023-07-28 22:56:51 +08:00
parent 9806e24083
commit d24c95a582
2 changed files with 8 additions and 4 deletions

View File

@ -137,14 +137,13 @@ int main(int argc, char *argv[])
//app_led_group_register(); //app_led_group_register();
app_message_recv_start(); app_message_recv_start();
sf_led_init();
sf_customer_param_load(); sf_customer_param_load();
sf_app_para_check_start(); sf_app_para_check_start();
UIMenuStoreInfo *puiPara = sf_app_ui_para_get(); UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
startup = sf_poweron_type_get(); startup = sf_poweron_type_get();
printf("[%s:%d] isUsb = %d isCard = %d isUpdate:%d CamMode:%d startup:%d %s\n", __FUNCTION__, __LINE__, isUsb,isCard,isUpdate,puiPara->CamMode, startup, sf_poweron_type_string(startup)); printf("[%s:%d] isUsb = %d isCard = %d isUpdate:%d CamMode:%d startup:%d %s\n", __FUNCTION__, __LINE__, isUsb,isCard,isUpdate,puiPara->CamMode, startup, sf_poweron_type_string(startup));
sf_led_init();
if((!isUsb) && (SF_MCU_STARTUP_NORMAL != startup) /*&& (0 == isUpdate)*/) if((!isUsb) && (SF_MCU_STARTUP_NORMAL != startup) /*&& (0 == isUpdate)*/)
{ {

View File

@ -1080,6 +1080,11 @@ static SINT32 app_file_transfer(SF_FN_PARAM_S *pfnParam) {
if (pCustomerParam->GpsSendFlag) { if (pCustomerParam->GpsSendFlag) {
s32ret = sf_send_file_to_ftp(2); s32ret = sf_send_file_to_ftp(2);
pCustomerParam->GpsSendFlag = 0; pCustomerParam->GpsSendFlag = 0;
if(pCustomerParam->PicUpDailyReport){
sf_sms_set_pic(1);
SLOGD("GpsSendFlag:%d\n", pCustomerParam->GpsSendFlag);
break;
}
} }
if (sf_get_pic()) { if (sf_get_pic()) {