diff --git a/spi.c b/spi.c index c177fb06eb8ecb07606ec291358a9fa1850ecdc9..b2812ba727a93062d8fea8466b11336e0a4fd165 100644 --- a/spi.c +++ b/spi.c @@ -147,6 +147,7 @@ int default_spi_send_multicommand(struct spi_command *spicommands) while ((spicommands->writecnt || spicommands->readcnt) && !result) { result = spi_send_command(spicommands->writecnt, spicommands->readcnt, spicommands->writearr, spicommands->readarr); + spicommands++; } return result; }