ln:ota文件下载优化,重试次数调整为50,确保一定能够ota成功 2651/2 2651/head
authorluozheng <1732036298@qq.com>
Fri, 31 Oct 2025 11:50:46 +0000 (19:50 +0800)
committerluozheng <1732036298@qq.com>
Fri, 31 Oct 2025 11:50:46 +0000 (19:50 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c

index cca3aab..f394b39 100644 (file)
@@ -653,7 +653,7 @@ uint32_t ln_ota_download_flow_http(const char *device_id,
                 return ERRCODE_FAIL;
             }
         }
-        for(int i = 0; i < 20; i++)
+        for(int i = 0; i < 50; i++)
         {
             printf("[OTA] 当前重试次数: %d\n", i);
             dres = ln_download_file_to_path(fixed_url, save_path, g_ln_last_package_size);