drivers: spi: spi_pico_pio: Fix data size issue
To convey the correct data size, use the 'data->dfs' value instead of '1' when moving the SPI context to the next buffer. Signed-off-by: Andreas Wolf <awolf002@gmail.com>
This commit is contained in:
parent
67cfd32e04
commit
dbdfd96c61
1 changed files with 2 additions and 2 deletions
|
@ -671,8 +671,8 @@ static int spi_pico_pio_transceive_impl(const struct device *dev, const struct s
|
|||
|
||||
do {
|
||||
spi_pico_pio_txrx(dev);
|
||||
spi_context_update_tx(spi_ctx, 1, data->tx_count);
|
||||
spi_context_update_rx(spi_ctx, 1, data->rx_count);
|
||||
spi_context_update_tx(spi_ctx, data->dfs, data->tx_count);
|
||||
spi_context_update_rx(spi_ctx, data->dfs, data->rx_count);
|
||||
} while (spi_pico_pio_transfer_ongoing(data));
|
||||
|
||||
spi_context_cs_control(spi_ctx, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue