Skip to content
Snippets Groups Projects
Commit bc5e8a2c authored by Damien George's avatar Damien George
Browse files

stm32/i2c: Fix num_acks calculation in i2c_write for F0 and F7 MCU's.

Due to buffering of outgoing bytes on the I2C bus, detection of a NACK
using the ISR_NACKF flag needs to account for the case where ISR_NACKF
corresponds to the previous-to-previous byte.
parent 37a7257a
No related branches found
No related tags found
Loading
Loading
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