mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
bt: removed esp_bt_get_mac()
There was no need for this function as there is already a way present to fetch own mac address. Own mac addr can be fetched by calling controller_get_interface().
This commit is contained in:
@@ -139,7 +139,6 @@ typedef struct {
|
||||
} btdm_dram_available_region_t;
|
||||
|
||||
typedef void (* osi_intr_handler)(void);
|
||||
static uint8_t own_bda[6];
|
||||
|
||||
/* OSI function */
|
||||
struct osi_funcs_t {
|
||||
@@ -975,8 +974,6 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
}
|
||||
|
||||
read_mac_wrapper(own_bda);
|
||||
|
||||
ESP_LOGI(BTDM_LOG_TAG, "BT controller compile version [%s]", btdm_controller_get_compile_version());
|
||||
|
||||
// init low-power control resources
|
||||
@@ -1331,11 +1328,6 @@ esp_bt_controller_status_t esp_bt_controller_get_status(void)
|
||||
return btdm_controller_status;
|
||||
}
|
||||
|
||||
uint8_t* esp_bt_get_mac(void)
|
||||
{
|
||||
return own_bda;
|
||||
}
|
||||
|
||||
/* extra functions */
|
||||
esp_err_t esp_ble_tx_power_set(esp_ble_power_type_t power_type, esp_power_level_t power_level)
|
||||
{
|
||||
|
Reference in New Issue
Block a user