Commit 555708db authored by 薛晓虎's avatar 薛晓虎

Merge branch 'TYW-2025-00747_devlop' into 'TYW-2025-00747_release'

TYW-2025-00747释放合并请求250901

See merge request !17
parents efe3a649 4ba80916
......@@ -456,12 +456,18 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
// call_timer = 0;
// }
// break;
if((param->clcc.idx!=0)&&(param->clcc.number))
{
if((strstr(param->clcc.number,"10000000") == NULL) && (strstr(param->clcc.number,"00000000") == NULL))
{
// printf("%s\n",param->clcc.number);
// if (param->clcc.number[0] != '+')
{
BT_User.Get_Call_Num = 1;
}
}
}
}
case ESP_HF_CLIENT_VOLUME_CONTROL_EVT:
{
......
......@@ -256,7 +256,7 @@ static esp_ble_adv_params_t adv_params = {
.adv_int_min = 0x20,
.adv_int_max = 0x40,
.adv_type = ADV_TYPE_IND,
.own_addr_type = BLE_ADDR_TYPE_PUBLIC,
.own_addr_type = BLE_ADDR_TYPE_RANDOM,
.channel_map = ADV_CHNL_ALL,
.adv_filter_policy = ADV_FILTER_ALLOW_SCAN_ANY_CON_ANY,
};
......@@ -666,7 +666,7 @@ static void gatts_profile_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_
{
switch (event) {
case ESP_GATTS_REG_EVT:{
// esp_ble_gap_set_rand_addr(rand_addr);
esp_ble_gap_set_rand_addr(rand_addr);
esp_err_t set_dev_name_ret = esp_ble_gap_set_device_name((const char *)BT_Device_Name);
if (set_dev_name_ret){
ESP_LOGE(GATTS_TABLE_TAG, "set device name failed, error code = %x", set_dev_name_ret);
......@@ -908,6 +908,14 @@ void Get_Mac_Init(void )
char temp[10] = {0};
char temp1[20] = {0};
esp_read_mac(ble_mac, ESP_MAC_BT);
for(i = 1; i<6; i++)
{
if (ble_mac[i])
{
rand_addr[i] = ble_mac[i] ;
}
}
// printf("%d\n",temp);
for(i = 6; i > 0; i--)
{
......
#ifndef _MAIN_USER_H_
#define _MAIN_USER_H_
#define BL_INTERNAL_SW_YEAR 0x24
#define BL_INTERNAL_SW_MONTH 0x12
#define BL_INTERNAL_SW_DAY 0x19
#define BL_INTERNAL_SW_YEAR 0x25
#define BL_INTERNAL_SW_MONTH 0x09
#define BL_INTERNAL_SW_DAY 0x01
#endif
\ No newline at end of file
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