embassy icon indicating copy to clipboard operation
embassy copied to clipboard

stm32/i2cv2: allow zero-length transfers.

Open Dirbaio opened this issue 2 years ago • 0 comments

I2C has checks for zero-length transfers, which return an error. These should instead do the right thing (send the address, check for ACK, then do a stop condition).

This is useful for I2C scanning all addresses.

Dirbaio avatar Dec 17 '23 23:12 Dirbaio