mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
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:
@ -908,7 +908,11 @@ static void *malloc_internal_wrapper(size_t size)
|
|||||||
|
|
||||||
static int32_t IRAM_ATTR read_mac_wrapper(uint8_t mac[6])
|
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)
|
static void IRAM_ATTR srand_wrapper(unsigned int seed)
|
||||||
|
Reference in New Issue
Block a user