rust-embedded / linux-embedded-hal

Implementation of the `embedded-hal` traits for Linux devices
Apache License 2.0
236 stars 40 forks source link

Fix #97: split unbalanced SPI transfers into rw+r or rw+w #98

Closed adamgreig closed 1 year ago

adamgreig commented 1 year ago

I think this should be OK but so far I've only tested it on equal-sized buffers and reads-bigger-than-writes as I don't have anything convenient set up for checking what happens with writes-bigger-than-reads.

adamgreig commented 1 year ago

Changelog added. I tested this with short reads too and it seems to work as expected.