Skip to content

Commit dbdfd96

Browse files
Snap-Adkalowsk
authored andcommitted
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 <[email protected]>
1 parent 67cfd32 commit dbdfd96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi_rpi_pico_pio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,8 @@ static int spi_pico_pio_transceive_impl(const struct device *dev, const struct s
671671

672672
do {
673673
spi_pico_pio_txrx(dev);
674-
spi_context_update_tx(spi_ctx, 1, data->tx_count);
675-
spi_context_update_rx(spi_ctx, 1, data->rx_count);
674+
spi_context_update_tx(spi_ctx, data->dfs, data->tx_count);
675+
spi_context_update_rx(spi_ctx, data->dfs, data->rx_count);
676676
} while (spi_pico_pio_transfer_ongoing(data));
677677

678678
spi_context_cs_control(spi_ctx, false);

0 commit comments

Comments
 (0)