From fed4d653bafad4b91927342858111cb4f6cdeb7c Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sat, 27 Jul 2024 10:15:14 +0800 Subject: [PATCH] =?utf8?q?=E5=B0=86ACL=E6=96=AD=E8=BF=9E=E6=97=B6=E4=BD=BF?= =?utf8?q?=E7=94=A8=E6=8E=A5=E5=8F=A3=E6=94=B9=E4=B8=BA=E5=9B=9E=E8=BF=9E?= =?utf8?q?=E6=8E=A5=E5=8F=A3=EF=BC=8C=E7=A1=AE=E6=8A=A5=E5=8F=AF=E4=BB=A5?= =?utf8?q?=E8=BF=9E=E6=8E=A5=E4=B8=8AHFP=EF=BC=88=E6=9C=89BUG=E4=BC=9A?= =?utf8?q?=E5=90=8C=E6=97=B6=E8=BF=9E=E4=B8=8AA2DP=EF=BC=89=EF=BC=88?= =?utf8?q?=E8=A1=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/bluetooth/src/BluetoothModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp index b6c0d5902..5836ceb19 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothModel.cpp @@ -1651,10 +1651,10 @@ int uapi_disconnect_remote_device() int uapi_get_acl_connect_state() { - if( ALC_State_flag==GAP_ACL_STATE_DISCONNECTED )//|| ALC_State_flag ==GAP_ACL_STATE_LE_DISCONNECTED) - return 0; - else + if( ALC_State_flag==GAP_ACL_STATE_CONNECTED )//|| ALC_State_flag ==GAP_ACL_STATE_LE_DISCONNECTED) return 1; + else + return 0; } int uapi_set_acl_connect_hfp() -- 2.17.1