drivers: serial: sam0: fix baudrate assignment to config_cache in init
Fix baudrate field assignment in config_cache in uart_sam0_init Signed-off-by: Piotr Binkowski <p.binkowski@cthings.co>
This commit is contained in:
parent
85f202744d
commit
5774228819
1 changed files with 1 additions and 1 deletions
|
@ -561,7 +561,7 @@ static int uart_sam0_init(const struct device *dev)
|
|||
if (retval != 0) {
|
||||
return retval;
|
||||
}
|
||||
dev_data->config_cache.data_bits = cfg->baudrate;
|
||||
dev_data->config_cache.baudrate = cfg->baudrate;
|
||||
|
||||
#if CONFIG_UART_INTERRUPT_DRIVEN || CONFIG_UART_ASYNC_API
|
||||
cfg->irq_config_func(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue