mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[uart] fix: missing uart_config_t struct initialisation (#9235)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user