stm32f1: fix wrong AF type in uart, can.

This commit is contained in:
Dario Nieuwenhuis
2022-02-24 00:20:43 +01:00
parent caad1111f9
commit 17e77ede3f
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ impl<'d, T: Instance + bxcan::Instance> Can<'d, T> {
unborrow!(peri, rx, tx);
unsafe {
rx.set_as_af(rx.af_num(), AFType::OutputOpenDrain);
rx.set_as_af(rx.af_num(), AFType::Input);
tx.set_as_af(tx.af_num(), AFType::OutputPushPull);
}