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
991b9865
Commit
991b9865
authored
Jul 03, 2024
by
chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:删除无用代码
parent
ce75bad9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
21 deletions
+21
-21
app_BT_User.h
qianjiang/main/app_BT_User.h
+2
-2
bt_app_hf.c
qianjiang/main/bt_app_hf.c
+16
-16
bt_app_hf.h
qianjiang/main/bt_app_hf.h
+1
-1
gatts_table_creat_demo.c
qianjiang/main/gatts_table_creat_demo.c
+2
-2
No files found.
qianjiang/main/app_BT_User.h
View file @
991b9865
...
...
@@ -34,8 +34,8 @@ typedef struct
uint8_t
Call_Sts
;
uint16_t
ReconnTime
;
uint8_t
HF_Ctrl
;
char
Number
[
11
];
char
CCLC
[
11
];
//
char Number[11];
//
char CCLC[11];
char
Get_Call_Num
;
char
Call_Fitter_sts
;
}
BT_User_Control_Struct
;
...
...
qianjiang/main/bt_app_hf.c
View file @
991b9865
...
...
@@ -174,7 +174,7 @@ const char *c_inband_ring_state_str[] = {
};
extern
esp_bd_addr_t
peer_addr
;
static
uint8_t
call_timer
;
//
static uint8_t call_timer;
// If you want to connect a specific device, add it's address here
// esp_bd_addr_t peer_addr = {0xac, 0x67, 0xb2, 0x53, 0x77, 0xbe};
...
...
@@ -335,13 +335,13 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
if
(
param
->
call
.
status
==
0
)
{
BT_User
.
Call_Sts
=
Call_Idle
;
call_timer
=
0
;
printf
(
"call Hangup
\r\n
"
);
//
call_timer = 0;
//
printf("call Hangup\r\n");
}
else
if
(
param
->
call
.
status
==
1
)
{
BT_User
.
Call_Sts
=
Call_InProcess
;
printf
(
"call Call_InProcess
\r\n
"
);
//
printf("call Call_InProcess\r\n");
}
break
;
}
...
...
@@ -360,27 +360,27 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
BT_User
.
Call_Sts
=
Call_Idle
;
}
// BT_User.Call_Sts = Call_Idle;
call_timer
=
0
;
printf
(
"call Miss
\r\n
"
);
//
call_timer = 0;
//
printf("call Miss\r\n");
break
;
}
case
1
:
{
BT_User
.
Call_Sts
=
Call_IncomeCalling
;
printf
(
"call income
\r\n
"
);
//
printf("call income\r\n");
break
;
}
case
2
:
{
BT_User
.
Call_Sts
=
Call_OutCalling
;
printf
(
"call outcall
\r\n
"
);
//
printf("call outcall\r\n");
break
;
}
case
3
:
{
BT_User
.
Call_Sts
=
Call_OutCalling
;
printf
(
"call outcall
\r\n
"
);
//
printf("call outcall\r\n");
break
;
}
}
...
...
@@ -527,7 +527,7 @@ void Get_Iphone_Fitter_callsts(void )
BT_User
.
Call_Fitter_sts
=
Call_Idle
;
}
}
printf
(
"%d
\n
"
,
BT_User
.
Call_Fitter_sts
);
//
printf("%d\n",BT_User.Call_Fitter_sts);
}
...
...
@@ -621,12 +621,12 @@ HF_CMD_HANDLER(stop_vr)
}
HF_CMD_HANDLER
(
query_call
)
{
// printf("Query current call status\n");
esp_hf_client_query_current_calls
();
return
0
;
}
//
HF_CMD_HANDLER(query_call)
//
{
//
// printf("Query current call status\n");
//
esp_hf_client_query_current_calls();
//
return 0;
//
}
// HF_CMD_HANDLER(retrieve_subscriber)
// {
...
...
qianjiang/main/bt_app_hf.h
View file @
991b9865
...
...
@@ -32,7 +32,7 @@ int hf_redial_handler(void );
int
hf_dial_mem_handler
(
void
);
int
hf_start_vr_handler
(
void
);
int
hf_stop_vr_handler
(
void
);
int
hf_query_call_handler
(
void
);
//
int hf_query_call_handler(void );
...
...
qianjiang/main/gatts_table_creat_demo.c
View file @
991b9865
...
...
@@ -910,11 +910,11 @@ void Get_Mac_Init(void )
temp
[
g
]
=
(
char
)
rand
()
%
10
;
temp
[
g
]
+=
48
;
}
printf
(
"%d "
,
temp
[
g
]);
//
printf("%d ",temp[g]);
// printf("%d\n",);
//printf("%d ",ble_mac[g]);
}
printf
(
"
\n
"
);
//
printf("\n");
if
(
temp
[
0
]
==
0
)
{
temp
[
0
]
+=
69
;
...
...
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