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:
parent
5805782584
commit
78bb6b52e2
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue