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:
8ef71b6
)
ota优化,三次下载失败后通知ui切界面
2552/2
2552/head
2553/target/1
author
luozheng
<1732036298@qq.com>
Fri, 17 Oct 2025 07:37:41 +0000
(15:37 +0800)
committer
luozheng
<1732036298@qq.com>
Fri, 17 Oct 2025 07:37:41 +0000
(15:37 +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
2d3467e
..
31461d7
100644
(file)
--- a/
code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c
+++ b/
code/sdk/zhihui/leiniao/imsl_ln/ln_api_ota.c
@@
-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);