Skip to content

Commit 60d9d1c

Browse files
committed
fix write8n loop range accidentally leftover from expanded impl
1 parent 5f5f8a9 commit 60d9d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ili9341/spi_stm32f4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (pd *spiDriver) write8n(b byte, n int) {
4141
pd.bus.Bus.CR1.SetBits(stm32.SPI_CR1_SPE)
4242
}
4343

44-
for i := 0; i < n-1; i++ {
44+
for i := 0; i < n; i++ {
4545
pd.setWord(b, i == 0, i+1 == n)
4646
}
4747

0 commit comments

Comments
 (0)