1.集中发送时不进行提示
This commit is contained in:
parent
e2f35d9f6d
commit
ce4bb24031
|
@ -3573,23 +3573,26 @@ void sf_cardv_set_wifi_en(UINT32 cnt)
|
|||
INT32 sf_mem_write_photo(UINT32 buf, UINT32 size)
|
||||
{
|
||||
UINT32 fd = 0;
|
||||
|
||||
MLOGD("filesys not ready, store data into mem\n");
|
||||
system("rm -rf /tmp/MEMPHOTO.JPG");
|
||||
system("sync");
|
||||
fd = open("/tmp/MEMPHOTO.JPG", O_WRONLY | O_CREAT);
|
||||
if(fd)
|
||||
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
||||
if(0 == puiPara->SendType)
|
||||
{
|
||||
lseek(fd, 0, SEEK_END);
|
||||
write(fd, (void*)buf, size);
|
||||
close(fd);
|
||||
MLOGD("filesys not ready, store data into mem\n");
|
||||
system("rm -rf /tmp/MEMPHOTO.JPG");
|
||||
system("sync");
|
||||
if(SUCCESS == sf_share_mem_file_down(0, 0)){
|
||||
sf_set_send_statu(TRUE);
|
||||
fd = open("/tmp/MEMPHOTO.JPG", O_WRONLY | O_CREAT);
|
||||
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);
|
||||
return 0;
|
||||
MLOGE("MEMPHOTO.JPG size:%ld\n", size);
|
||||
}
|
||||
MLOGE("MEMPHOTO.JPG size:%ld\n", size);
|
||||
return 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user