reflect bitrate change of uart in uart struct

This commit is contained in:
Mario Hüttel 2020-02-24 22:15:36 +01:00
parent c923fb3e12
commit 71e2073a76
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ void uart_change_brr(struct stm_uart *uart, uint32_t brr)
if (!uart || !uart->uart_dev)
return;
uart->brr_val = brr;
uart->uart_dev->BRR = brr;
}