Skip to content

Conversation

ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented Aug 29, 2022

Summary
fix(Wire): in case of slave, (re)enable interrupt when configuring clock

Because TwoWire::setClock() calls i2c_setTiming()
which disable/(re)enable I2C Hardware,
it is necessary to restore interrupts.

Fixes #1804

Because TwoWire::setClock() calls i2c_setTiming()
which disable/(re)enable I2C Hardware,
it is necessary to restore interrupts.

Signed-off-by: Alexandre Bourdiol <[email protected]>
@fpistm fpistm added this to the 2.4.0 milestone Aug 30, 2022
@fpistm fpistm merged commit 08334ff into stm32duino:main Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 🩹 Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I2C: Wrong behavior with function setClock
2 participants