spi-memory
spi-memory copied to clipboard
Make BlockDevice depend on Write<u8> to remove mutable reference on write buffer
Hi!
I ran into the issue of write_bytes taking a &mut [u8], because the Transfer
This required some reorganisation of the Error type to receive the SPI Error type, as both Transfer and Write have their own associated Error type.
I might've missed some implications of depending on the Write trait, as I assumed that anything that implements Transfer, should have no problem implementing Write.