We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cfc75f commit 991bb45Copy full SHA for 991bb45
1 file changed
examples/stm32/f4/stm32f429i-discovery/spi/spi-mems.c
@@ -152,7 +152,7 @@ read_xyz(int16_t vecs[3])
152
gpio_set(GPIOC, GPIO1); /* CS* deselect */
153
vecs[0] = (buf[1] << 8 | buf[0]);
154
vecs[1] = (buf[3] << 8 | buf[2]);
155
- vecs[3] = (buf[5] << 8 | buf[4]);
+ vecs[2] = (buf[5] << 8 | buf[4]);
156
return read_reg(0x27); /* Status register */
157
}
158
0 commit comments