stm32/usart: fix error msg for lptim

This commit is contained in:
xoviat 2023-07-24 18:08:23 -05:00
parent 4db63677f6
commit 3c41784de8

View File

@ -857,7 +857,7 @@ fn configure(r: Regs, config: &Config, pclk_freq: Hertz, kind: Kind, enable_rx:
"Using {} oversampling, desired baudrate: {}, actual baudrate: {}",
oversampling,
config.baudrate,
pclk_freq.0 / div
(pclk_freq.0 * mul as u32) / div
);
r.cr2().write(|w| {