Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT200T_ESP32
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
RT200T
RT200T_ESP32
Commits
0b213abf
Commit
0b213abf
authored
Sep 02, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改蓝牙手动断开后不会在自动连接
parent
068d4eb1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
app_BT_User.c
RT200T_2_ESP32/main/app_BT_User.c
+8
-4
No files found.
RT200T_2_ESP32/main/app_BT_User.c
View file @
0b213abf
...
...
@@ -12,14 +12,14 @@ extern esp_bd_addr_t peer_addr;
BT_User_Control_Struct
BT_User
;
#define BT_ReConn_T 3000
uint8_t
BTConnectFlag
=
0
;
void
BT_User_Init
(
void
)
{
BT_User
.
BT_Sts
=
BT_Idle
;
BT_User
.
Call_Sts
=
Call_Idle
;
BT_User
.
ReconnTime
=
BT_ReConn_T
-
500
;
BT_User
.
HF_Ctrl
=
HF_Idle
;
BTConnectFlag
=
0
;
}
void
BT_Connect_Event_Pro
(
void
)
...
...
@@ -89,10 +89,14 @@ void BT_User_Process(void )
if
(
BT_User
.
ReconnTime
>=
BT_ReConn_T
)
{
printf
(
"Connect Start.................
\n
"
);
if
(
BTConnectFlag
==
0
)
{
BTConnectFlag
=
1
;
if
(
app_BT_Get_BondDev
()
==
1
)
{
esp_hf_client_connect
(
peer_addr
);
}
}
printf
(
"Connect Over
\n
"
);
...
...
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