1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 15:55:46 +00:00

[esp32_ble] Use stack allocation for MAC formatting in dump_config

This commit is contained in:
J. Nick Koston
2025-11-11 20:42:14 -06:00
parent 79a4444928
commit 0d46bc57d6

View File

@@ -634,11 +634,13 @@ void ESP32BLE::dump_config() {
io_capability_s = "invalid"; io_capability_s = "invalid";
break; break;
} }
char mac_s[18];
format_mac_addr_upper(mac_address, mac_s);
ESP_LOGCONFIG(TAG, ESP_LOGCONFIG(TAG,
"BLE:\n" "BLE:\n"
" MAC address: %s\n" " MAC address: %s\n"
" IO Capability: %s", " IO Capability: %s",
format_mac_address_pretty(mac_address).c_str(), io_capability_s); mac_s, io_capability_s);
} else { } else {
ESP_LOGCONFIG(TAG, "Bluetooth stack is not enabled"); ESP_LOGCONFIG(TAG, "Bluetooth stack is not enabled");
} }