ota优化,三次下载失败后通知ui切界面 2552/2 2552/head 2553/target/1
authorluozheng <1732036298@qq.com>
Fri, 17 Oct 2025 07:37:41 +0000 (15:37 +0800)
committerluozheng <1732036298@qq.com>
Fri, 17 Oct 2025 07:37:41 +0000 (15:37 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c

index 2d3467e..31461d7 100644 (file)
@@ -112,6 +112,9 @@ static void ln_ota_handle_download_msg(const OtaDownloadMsg *msg)
             if (reset_cnt < 3) {
                 do_ln_http_server_send_data(LN_HTTP_SERVICE_CMD_OTA_DOWNLOAD, NULL, 0);
             }
+            else {
+                push_ota_status(OTA_UI_STATUS_FAILED);
+            }
             break;
         default:
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"[OTA_DOWNLOAD] 未知状态: %d", msg->status);