Commit 5abe4307 authored by 王金亮's avatar 王金亮

feat:修改鸿蒙系统,拨打微信电话,电话图标会闪的bug

parent 5c2b7039
...@@ -669,6 +669,7 @@ void Ble_User_Task_Event(void *pvParameter) ...@@ -669,6 +669,7 @@ void Ble_User_Task_Event(void *pvParameter)
vTaskDelete(NULL); vTaskDelete(NULL);
} }
uint8_t BT_User_HfClient_Req_Cnt;
void Ble_User_Task_Cyc(void *pvParameter) void Ble_User_Task_Cyc(void *pvParameter)
{ {
while (1) while (1)
...@@ -684,8 +685,22 @@ void Ble_User_Task_Cyc(void *pvParameter) ...@@ -684,8 +685,22 @@ void Ble_User_Task_Cyc(void *pvParameter)
} }
Get_Iphone_Fitter_callsts(); Get_Iphone_Fitter_callsts();
Ble_MsgRec_Navi_Timeout(); Ble_MsgRec_Navi_Timeout();
esp_hf_client_query_current_calls();
if(BT_User.Call_Sts != Call_Idle)
{
if(BT_User_HfClient_Req_Cnt ++ >= 15)
{
BT_User_HfClient_Req_Cnt = 0;
esp_hf_client_query_current_calls();
}
}
else
{
BT_User_HfClient_Req_Cnt = 0;
}
BT_User_Process(); BT_User_Process();
if(Wifi_OTA_Request != 0) if(Wifi_OTA_Request != 0)
......
...@@ -456,8 +456,9 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_ ...@@ -456,8 +456,9 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
// call_timer = 0; // call_timer = 0;
// } // }
// break; // break;
if(strstr(param->clcc.number,"10000000") == NULL) if((strstr(param->clcc.number,"10000000") == NULL) && (strstr(param->clcc.number,"00000000") == NULL))
{ {
// printf("%s\n",param->clcc.number);
BT_User.Get_Call_Num = 1; BT_User.Get_Call_Num = 1;
} }
} }
...@@ -508,7 +509,7 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_ ...@@ -508,7 +509,7 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
break; break;
} }
} }
// uint8_t lasttest;
void Get_Iphone_Fitter_callsts(void ) void Get_Iphone_Fitter_callsts(void )
{ {
if(BT_User.Call_Sts == Call_Idle) if(BT_User.Call_Sts == Call_Idle)
...@@ -527,7 +528,11 @@ void Get_Iphone_Fitter_callsts(void ) ...@@ -527,7 +528,11 @@ void Get_Iphone_Fitter_callsts(void )
BT_User.Call_Fitter_sts = Call_Idle; BT_User.Call_Fitter_sts = Call_Idle;
} }
} }
// printf("%d\n",BT_User.Call_Fitter_sts);
// if(BT_User.Call_Fitter_sts != lasttest)
// printf("%d\n",BT_User.Call_Fitter_sts);
// lasttest = BT_User.Call_Fitter_sts;
} }
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
#define _MAIN_USER_H_ #define _MAIN_USER_H_
#define BL_INTERNAL_SW_YEAR 0x24 #define BL_INTERNAL_SW_YEAR 0x24
#define BL_INTERNAL_SW_MONTH 0x08 #define BL_INTERNAL_SW_MONTH 0x10
#define BL_INTERNAL_SW_DAY 0x03 #define BL_INTERNAL_SW_DAY 0x29
#endif #endif
\ No newline at end of file
...@@ -1335,16 +1335,18 @@ CONFIG_HEAP_TRACING_OFF=y ...@@ -1335,16 +1335,18 @@ CONFIG_HEAP_TRACING_OFF=y
# Log output # Log output
# #
# CONFIG_LOG_DEFAULT_LEVEL_NONE is not set # CONFIG_LOG_DEFAULT_LEVEL_NONE is not set
# CONFIG_LOG_DEFAULT_LEVEL_ERROR is not set CONFIG_LOG_DEFAULT_LEVEL_ERROR=y
# CONFIG_LOG_DEFAULT_LEVEL_WARN is not set # CONFIG_LOG_DEFAULT_LEVEL_WARN is not set
CONFIG_LOG_DEFAULT_LEVEL_INFO=y # CONFIG_LOG_DEFAULT_LEVEL_INFO is not set
# CONFIG_LOG_DEFAULT_LEVEL_DEBUG is not set # CONFIG_LOG_DEFAULT_LEVEL_DEBUG is not set
# CONFIG_LOG_DEFAULT_LEVEL_VERBOSE is not set # CONFIG_LOG_DEFAULT_LEVEL_VERBOSE is not set
CONFIG_LOG_DEFAULT_LEVEL=3 CONFIG_LOG_DEFAULT_LEVEL=1
CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y
# CONFIG_LOG_MAXIMUM_LEVEL_WARN is not set
# CONFIG_LOG_MAXIMUM_LEVEL_INFO is not set
# CONFIG_LOG_MAXIMUM_LEVEL_DEBUG is not set # CONFIG_LOG_MAXIMUM_LEVEL_DEBUG is not set
# CONFIG_LOG_MAXIMUM_LEVEL_VERBOSE is not set # CONFIG_LOG_MAXIMUM_LEVEL_VERBOSE is not set
CONFIG_LOG_MAXIMUM_LEVEL=3 CONFIG_LOG_MAXIMUM_LEVEL=1
CONFIG_LOG_COLORS=y CONFIG_LOG_COLORS=y
CONFIG_LOG_TIMESTAMP_SOURCE_RTOS=y CONFIG_LOG_TIMESTAMP_SOURCE_RTOS=y
# CONFIG_LOG_TIMESTAMP_SOURCE_SYSTEM is not set # CONFIG_LOG_TIMESTAMP_SOURCE_SYSTEM is not set
......
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