ln:ota文件下载重试次数调整到20次
authorluozheng <1732036298@qq.com>
Fri, 31 Oct 2025 11:39:29 +0000 (19:39 +0800)
committerluozheng <1732036298@qq.com>
Fri, 31 Oct 2025 11:39:29 +0000 (19:39 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c

index eac265b..cca3aab 100644 (file)
@@ -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)
             {