summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spi.c b/spi.c
index c177fb0..b2812ba 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;
}
OpenPOWER on IntegriCloud