1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

STM32F3 - Fix failing multi-byte reads on the AK8975.

This commit is contained in:
Dominic Clifton 2014-12-26 00:04:30 +00:00
parent 5805782584
commit 78bb6b52e2

View file

@ -281,10 +281,6 @@ bool i2cRead(uint8_t addr_, uint8_t reg, uint8_t len, uint8_t* buf)
}
}
if (len > 1) {
reg |= 0x80;
}
/* Send Register address */
I2C_SendData(I2Cx, (uint8_t) reg);