fix(bt/bluedroid): Fixed "reprot" typo in esp_ble_gap_ext_adv_reprot_t

This commit is contained in:
thekurtovic 2023-05-06 16:11:49 -04:00 committed by chenjianhua
parent 119af9f78f
commit d406bf02b5
2 changed files with 3 additions and 3 deletions

View File

@ -945,7 +945,7 @@ typedef struct {
esp_ble_gap_ext_adv_data_status_t data_status; /*!< data type */ esp_ble_gap_ext_adv_data_status_t data_status; /*!< data type */
uint8_t adv_data_len; /*!< extend advertising data length */ uint8_t adv_data_len; /*!< extend advertising data length */
uint8_t adv_data[251]; /*!< extend advertising data */ uint8_t adv_data[251]; /*!< extend advertising data */
} esp_ble_gap_ext_adv_reprot_t; } esp_ble_gap_ext_adv_report_t;
/** /**
* @brief periodic adv report parameters * @brief periodic adv report parameters
@ -1410,7 +1410,7 @@ typedef union {
* @brief ESP_GAP_BLE_EXT_ADV_REPORT_EVT * @brief ESP_GAP_BLE_EXT_ADV_REPORT_EVT
*/ */
struct ble_ext_adv_report_param { struct ble_ext_adv_report_param {
esp_ble_gap_ext_adv_reprot_t params; /*!< extend advertising report parameters */ esp_ble_gap_ext_adv_report_t params; /*!< extend advertising report parameters */
} ext_adv_report; /*!< Event parameter of ESP_GAP_BLE_EXT_ADV_REPORT_EVT */ } ext_adv_report; /*!< Event parameter of ESP_GAP_BLE_EXT_ADV_REPORT_EVT */
/** /**
* @brief ESP_GAP_BLE_PERIODIC_ADV_REPORT_EVT * @brief ESP_GAP_BLE_PERIODIC_ADV_REPORT_EVT

View File

@ -1067,7 +1067,7 @@ static void btc_ble_5_gap_callback(tBTA_DM_BLE_5_GAP_EVENT event,
break; break;
case BTA_DM_BLE_5_GAP_EXT_ADV_REPORT_EVT: case BTA_DM_BLE_5_GAP_EXT_ADV_REPORT_EVT:
msg.act = ESP_GAP_BLE_EXT_ADV_REPORT_EVT; msg.act = ESP_GAP_BLE_EXT_ADV_REPORT_EVT;
memcpy(&param.ext_adv_report.params, &params->ext_adv_report, sizeof(esp_ble_gap_ext_adv_reprot_t)); memcpy(&param.ext_adv_report.params, &params->ext_adv_report, sizeof(esp_ble_gap_ext_adv_report_t));
if (params->ext_adv_report.adv_data) { if (params->ext_adv_report.adv_data) {
memcpy(param.ext_adv_report.params.adv_data, memcpy(param.ext_adv_report.params.adv_data,
params->ext_adv_report.adv_data, params->ext_adv_report.adv_data_len); params->ext_adv_report.adv_data, params->ext_adv_report.adv_data_len);