Merge branch 'feat/print_the_ble_mac_when_init_5.0' into 'release/v5.0'

feat(ble): Print out the BT mac when the controller is initialized

See merge request espressif/esp-idf!32733
This commit is contained in:
Jiang Jiang Jian 2024-08-15 15:58:40 +08:00
commit 08fc43a63d

View File

@ -614,6 +614,9 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
uint8_t mac[6];
ESP_ERROR_CHECK(esp_read_mac((uint8_t *)mac, ESP_MAC_BT));
ESP_LOGI(NIMBLE_PORT_LOG_TAG, "Bluetooth MAC: %02x:%02x:%02x:%02x:%02x:%02x",
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
swap_in_place(mac, 6);
esp_ble_ll_set_public_addr(mac);