1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 16:25:50 +00:00

[esp32_ble] Use stack allocation for MAC formatting in dump_config (#11860)

This commit is contained in:
J. Nick Koston
2025-11-12 14:26:57 -06:00
committed by GitHub
parent 2f39b10baa
commit 5f0fa68d73

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");
} }