Commit 991b9865 authored by chen's avatar chen

fix:删除无用代码

parent ce75bad9
......@@ -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;
......
......@@ -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)
// {
......
......@@ -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 );
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment