projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62c6c8f
)
ln:ota文件下载优化,重试次数调整为50,确保一定能够ota成功
2651/2
2651/head
author
luozheng
<1732036298@qq.com>
Fri, 31 Oct 2025 11:50:46 +0000
(19:50 +0800)
committer
luozheng
<1732036298@qq.com>
Fri, 31 Oct 2025 11:50:46 +0000
(19:50 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c
b/code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c
index
cca3aab
..
f394b39
100644
(file)
--- a/
code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c
+++ b/
code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c
@@
-653,7
+653,7
@@
uint32_t ln_ota_download_flow_http(const char *device_id,
return ERRCODE_FAIL;
}
}
- for(int i = 0; i <
2
0; i++)
+ for(int i = 0; i <
5
0; i++)
{
printf("[OTA] 当前重试次数: %d\n", i);
dres = ln_download_file_to_path(fixed_url, save_path, g_ln_last_package_size);