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:
c5487e3
)
ln:ota文件下载重试次数调整到20次
author
luozheng
<1732036298@qq.com>
Fri, 31 Oct 2025 11:39:29 +0000
(19:39 +0800)
committer
luozheng
<1732036298@qq.com>
Fri, 31 Oct 2025 11:39:29 +0000
(19:39 +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
eac265b
..
cca3aab
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,8
+653,9
@@
uint32_t ln_ota_download_flow_http(const char *device_id,
return ERRCODE_FAIL;
}
}
- for(int i = 0; i <
3
; i++)
+ for(int i = 0; i <
20
; i++)
{
+ printf("[OTA] 当前重试次数: %d\n", i);
dres = ln_download_file_to_path(fixed_url, save_path, g_ln_last_package_size);
if(dres == 0)
{