From: hcj <1224667075@qq.com> Date: Sat, 27 Jul 2024 02:15:14 +0000 (+0800) Subject: 将ACL断连时使用接口改为回连接口,确报可以连接上HFP(有BUG会同时连上A2DP)(补) X-Git-Tag: release_V1.2.70_20241020_135402~741^2~3 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=fed4d653bafad4b91927342858111cb4f6cdeb7c;p=mirrors%2FFD230.git 将ACL断连时使用接口改为回连接口,确报可以连接上HFP(有BUG会同时连上A2DP)(补) --- 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()