frank-zago/ch341-i2c-spi-gpio

BUG: ch341_spi_transfer_one_message calls spi_transfer with bad nsegs value

LouisLambda opened this issue · 0 comments

status = spi_transfer(dev, client->buf, buf_idx, buf_idx - tx_len);

that last argument (buf_idx - tx_len) is the nsegs argument for spi_transfer. I think that's not calculated properly.