SPI read buffer returns incorrect values
panbr907 opened this issue · 0 comments
panbr907 commented
With more than one read or duplex operation, the read buffer is filled with only the value of the last operation requested.
Caused by line
return [transfer.to_read_bytes() for t in transfers if t.has_read_buf]
in spi.py; suggest it be changed to
return [t.to_read_bytes() for t in transfers if t.has_read_buf]