Skip to content
Snippets Groups Projects
Commit 4ba5a893 authored by Samuel Tardieu's avatar Samuel Tardieu
Browse files

Clear BERR if it happens

parent 9dc3028e
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,10 @@ unsafe fn I2C2_EV() {
sr1.0
);
}
if sr1.berr() {
defmt::trace!("clearing BERR");
pac::I2C2.sr1().modify(|w| w.set_berr(false));
}
break;
}
if sr1.ovr() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment