From c7eaaa9ca37ff13bbe786252f3ec11e1c94ce561 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Wed, 7 Jan 2026 20:50:47 +0800 Subject: [PATCH] =?utf8?q?=E5=A6=82=E6=9E=9C=E6=9C=89=E9=85=8D=E5=AF=B9?= =?utf8?q?=E8=AE=BE=E5=A4=87=E5=88=99=E4=B8=8A=E6=8A=A5=E7=8A=B6=E6=80=81?= =?utf8?q?=E5=90=A6=E5=88=99=E4=B8=8D=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/thunderbird/src/ThunderBirdModel.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 863bc3b89..9c27a1f00 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 @@ -1734,10 +1734,17 @@ extern "C" { uapi_start_all_websocket_servers(0); // 连接服务器 #endif - //异步上报耳机状态 - GraphicService::GetInstance()->PostGraphicEvent([]() { + //如果有配对设备则上报状态否则不上报 + int connedDevicesNum = 0; + bool ret = gap_get_paired_devices_num(&connedDevicesNum); + if(ret == true && connedDevicesNum > 0) + { + //异步上报耳机状态 + GraphicService::GetInstance()->PostGraphicEvent([]() { ln_bt_report_earphone_connection_status(); - }); + }); + } + #ifdef DO_VAD_AUTH //VAD认证 -- 2.17.1