fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32

- Add a log statement to print the Bluetooth MAC address
This commit is contained in:
zhanghaipeng 2023-07-03 15:36:41 +08:00
parent b5bc96693e
commit 18a1a01764

View File

@ -864,7 +864,11 @@ static void *malloc_internal_wrapper(size_t size)
static int32_t IRAM_ATTR read_mac_wrapper(uint8_t mac[6])
{
return esp_read_mac(mac, ESP_MAC_BT);
int ret = esp_read_mac(mac, ESP_MAC_BT);
ESP_LOGI(BTDM_LOG_TAG, "Bluetooth MAC: %02x:%02x:%02x:%02x:%02x:%02x",
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
return ret;
}
static void IRAM_ATTR srand_wrapper(unsigned int seed)