Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QJ_500-7c
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
QJ_500-7c
Commits
118b0c1f
Commit
118b0c1f
authored
Dec 18, 2024
by
王金亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:此处修改无用,改为之前的版本
parent
a6cbe34f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
bt_app_hf.c
qianjiang/main/bt_app_hf.c
+2
-0
bt_app_main.c
qianjiang/main/bt_app_main.c
+7
-4
No files found.
qianjiang/main/bt_app_hf.c
View file @
118b0c1f
...
...
@@ -252,9 +252,11 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
if
(
param
->
conn_stat
.
state
==
0
)
{
BT_DisConnect_Event_Pro
();
}
else
if
(
param
->
conn_stat
.
state
==
2
)
{
BT_Connect_Event_Pro
();
}
break
;
}
...
...
qianjiang/main/bt_app_main.c
View file @
118b0c1f
...
...
@@ -186,16 +186,19 @@ void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
case
ESP_BT_GAP_ACL_CONN_CMPL_STAT_EVT
:
if
(
param
->
acl_conn_cmpl_stat
.
stat
==
ESP_BT_STATUS_SUCCESS
)
// ESP_LOGE(BT_HF_TAG, "BT CONN");
// printf("stat :%d \r\n",param->acl_conn_cmpl_stat.stat);
if
(
param
->
acl_conn_cmpl_stat
.
stat
==
ESP_BT_STATUS_HCI_SUCCESS
)
{
BT_Connect_Event_Pro
();
//
BT_Connect_Event_Pro();
ESP_LOGI
(
BT_HF_TAG
,
"BT CONN"
);
}
break
;
/* when ACL disconnection completed, this event comes */
case
ESP_BT_GAP_ACL_DISCONN_CMPL_STAT_EVT
:
ESP_LOGW
(
BT_HF_TAG
,
"BT DISCONN REASON %x"
,
param
->
acl_disconn_cmpl_stat
.
reason
);
BT_DisConnect_Event_Pro
();
//
ESP_LOGW(BT_HF_TAG, "BT DISCONN REASON %x", param->acl_disconn_cmpl_stat.reason);
//
BT_DisConnect_Event_Pro();
BT_User
.
BT_DisConnReason
=
param
->
acl_disconn_cmpl_stat
.
reason
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment