stm32f429i-discovery/spi: Fixed an OBO index bug.

This commit is contained in:
Piotr Esden-Tempski
2021-06-19 01:18:35 -07:00
parent 4cfc75f715
commit 991bb45710

View File

@@ -152,7 +152,7 @@ read_xyz(int16_t vecs[3])
gpio_set(GPIOC, GPIO1); /* CS* deselect */ gpio_set(GPIOC, GPIO1); /* CS* deselect */
vecs[0] = (buf[1] << 8 | buf[0]); vecs[0] = (buf[1] << 8 | buf[0]);
vecs[1] = (buf[3] << 8 | buf[2]); vecs[1] = (buf[3] << 8 | buf[2]);
vecs[3] = (buf[5] << 8 | buf[4]); vecs[2] = (buf[5] << 8 | buf[4]);
return read_reg(0x27); /* Status register */ return read_reg(0x27); /* Status register */
} }