mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 19:50:49 -07:00
[udp] Use stack buffer for listen address logging in dump_config (#12667)
This commit is contained in:
@@ -130,7 +130,8 @@ void UDPComponent::dump_config() {
|
||||
for (const auto &address : this->addresses_)
|
||||
ESP_LOGCONFIG(TAG, " Address: %s", address.c_str());
|
||||
if (this->listen_address_.has_value()) {
|
||||
ESP_LOGCONFIG(TAG, " Listen address: %s", this->listen_address_.value().str().c_str());
|
||||
char addr_buf[network::IP_ADDRESS_BUFFER_SIZE];
|
||||
ESP_LOGCONFIG(TAG, " Listen address: %s", this->listen_address_.value().str_to(addr_buf));
|
||||
}
|
||||
ESP_LOGCONFIG(TAG,
|
||||
" Broadcasting: %s\n"
|
||||
|
||||
Reference in New Issue
Block a user