From 553b97e84c841a206b222700d12a4b0caf9f7a66 Mon Sep 17 00:00:00 2001 From: Shen Weilong Date: Fri, 9 Aug 2024 20:58:57 +0800 Subject: [PATCH] feat(ble): Print out the BT mac when the controller is initialized --- components/bt/controller/esp32c2/bt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/bt/controller/esp32c2/bt.c b/components/bt/controller/esp32c2/bt.c index 7fa11cd5b4..2b3b332bb6 100644 --- a/components/bt/controller/esp32c2/bt.c +++ b/components/bt/controller/esp32c2/bt.c @@ -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);