From 921d0888cdce6e94a29c024c604812e54aa59d40 Mon Sep 17 00:00:00 2001 From: Rezoran <30475103+Rezoran@users.noreply.github.com> Date: Sun, 29 Jun 2025 17:05:23 +0200 Subject: [PATCH] [uart] fix: missing uart_config_t struct initialisation (#9235) --- esphome/components/uart/uart_component_esp_idf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/uart/uart_component_esp_idf.cpp b/esphome/components/uart/uart_component_esp_idf.cpp index 84bd48d530..8fae63a603 100644 --- a/esphome/components/uart/uart_component_esp_idf.cpp +++ b/esphome/components/uart/uart_component_esp_idf.cpp @@ -42,7 +42,7 @@ uart_config_t IDFUARTComponent::get_config_() { break; } - uart_config_t uart_config; + uart_config_t uart_config{}; uart_config.baud_rate = this->baud_rate_; uart_config.data_bits = data_bits; uart_config.parity = parity;