1.集中发送时不进行提示

This commit is contained in:
payton 2024-01-18 19:40:39 +08:00
parent e2f35d9f6d
commit ce4bb24031

View File

@ -3573,23 +3573,26 @@ void sf_cardv_set_wifi_en(UINT32 cnt)
INT32 sf_mem_write_photo(UINT32 buf, UINT32 size) INT32 sf_mem_write_photo(UINT32 buf, UINT32 size)
{ {
UINT32 fd = 0; UINT32 fd = 0;
UIMenuStoreInfo *puiPara = sf_ui_para_get();
MLOGD("filesys not ready, store data into mem\n"); if(0 == puiPara->SendType)
system("rm -rf /tmp/MEMPHOTO.JPG");
system("sync");
fd = open("/tmp/MEMPHOTO.JPG", O_WRONLY | O_CREAT);
if(fd)
{ {
lseek(fd, 0, SEEK_END); MLOGD("filesys not ready, store data into mem\n");
write(fd, (void*)buf, size); system("rm -rf /tmp/MEMPHOTO.JPG");
close(fd);
system("sync"); system("sync");
if(SUCCESS == sf_share_mem_file_down(0, 0)){ fd = open("/tmp/MEMPHOTO.JPG", O_WRONLY | O_CREAT);
sf_set_send_statu(TRUE); if(fd)
{
lseek(fd, 0, SEEK_END);
write(fd, (void*)buf, size);
close(fd);
system("sync");
if(SUCCESS == sf_share_mem_file_down(0, 0)){
sf_set_send_statu(TRUE);
}
MLOGD("MEMPHOTO.JPG size:%ld\n", size);
return 0;
} }
MLOGD("MEMPHOTO.JPG size:%ld\n", size); MLOGE("MEMPHOTO.JPG size:%ld\n", size);
return 0;
} }
MLOGE("MEMPHOTO.JPG size:%ld\n", size);
return 1; return 1;
} }