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
1 changed files with 0 additions and 4 deletions

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);