Skip to content

Commit 991bb45

Browse files
committed
stm32f429i-discovery/spi: Fixed an OBO index bug.
1 parent 4cfc75f commit 991bb45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • examples/stm32/f4/stm32f429i-discovery/spi

examples/stm32/f4/stm32f429i-discovery/spi/spi-mems.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ read_xyz(int16_t vecs[3])
152152
gpio_set(GPIOC, GPIO1); /* CS* deselect */
153153
vecs[0] = (buf[1] << 8 | buf[0]);
154154
vecs[1] = (buf[3] << 8 | buf[2]);
155-
vecs[3] = (buf[5] << 8 | buf[4]);
155+
vecs[2] = (buf[5] << 8 | buf[4]);
156156
return read_reg(0x27); /* Status register */
157157
}
158158

0 commit comments

Comments
 (0)