From: Caisking Date: Sun, 28 Sep 2025 12:23:44 +0000 (+0800) Subject: 优化已绑定下的有网之后的ota升级 X-Git-Tag: V1.0.9_20251128_194606_LN~297^2~1 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=87b48899789cecc9d4c78408da8bb5cc0a4b4c6c;p=mirrors%2FFD230.git 优化已绑定下的有网之后的ota升级 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp index 3dd36189b..3809b161f 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp @@ -1022,9 +1022,13 @@ do_ln_http_server_send_data(LN_HTTP_SERVICE_CMD_GET_USER_ID, NULL, 0); // 网络连接成功,调用HTTP服务获取设备Token // 获取一下OTA 是否有最新版本 - int ota = ota_update_boot(); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ota_update_boot:%d",ota); - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Network connected, calling HTTP service"); + + // 需要是绑定状态才更新 + if(bind_status == true) + { + ota_update_boot(); + } + #if JUHEPINGTAI uapi_init_all_websocket_servers(); uapi_start_all_websocket_servers(); // 连接服务器