From: xue <2144439972@qq.com> Date: Wed, 7 Jan 2026 11:33:38 +0000 (+0800) Subject: 优化蓝牙上报操作 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=3130b9d5266fa58a11b498bf98793ed612cc296b;p=mirrors%2FFD230.git 优化蓝牙上报操作 --- 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 e714ec2b1..6622f5d99 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 @@ -1733,14 +1733,11 @@ extern "C" { uapi_init_all_websocket_servers(); uapi_start_all_websocket_servers(0); // 连接服务器 #endif - - //上报一次耳机状态 - if(ln_bt_report_earphone_connection_status() != 0) - { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ln_bt_report_earphone_connection_status failed"); - LOS_Msleep(200); - ln_bt_report_earphone_connection_status();//上报耳机状态 - } + + //异步上报耳机状态 + GraphicService::GetInstance()->PostGraphicEvent([]() { + ln_bt_report_earphone_connection_status(); + }); #ifdef DO_VAD_AUTH //VAD认证