mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-22 12:54:14 +01:00
Merge remote-tracking branch 'origin/lilvinz/mpu6000_masked_locals_fix' into next
This commit is contained in:
commit
f12d5c04fb
@ -435,9 +435,6 @@ void PIOS_MPU6000_IRQHandler(void)
|
|||||||
if(PIOS_MPU6000_ClaimBus() != 0)
|
if(PIOS_MPU6000_ClaimBus() != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint8_t mpu6000_send_buf[1+sizeof(struct pios_mpu6000_data)] = {PIOS_MPU6000_FIFO_REG | 0x80, 0, 0, 0, 0, 0, 0, 0, 0};
|
|
||||||
uint8_t mpu6000_rec_buf[1+sizeof(struct pios_mpu6000_data)];
|
|
||||||
|
|
||||||
if(PIOS_SPI_TransferBlock(dev->spi_id, &mpu6000_send_buf[0], &mpu6000_rec_buf[0], sizeof(mpu6000_send_buf), NULL) < 0) {
|
if(PIOS_SPI_TransferBlock(dev->spi_id, &mpu6000_send_buf[0], &mpu6000_rec_buf[0], sizeof(mpu6000_send_buf), NULL) < 0) {
|
||||||
PIOS_MPU6000_ReleaseBus();
|
PIOS_MPU6000_ReleaseBus();
|
||||||
mpu6000_fails++;
|
mpu6000_fails++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user