Fix hmc5883 detection broken in c6f5b98a79

This commit is contained in:
Dominic Clifton 2015-09-19 14:30:27 +01:00
parent e0f4ddeccd
commit 0d6d83925f
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ bool hmc5883lRead(int16_t *magData)
uint8_t buf[6];
bool ack = i2cRead(MAG_ADDRESS, MAG_DATA_REGISTER, 6, buf);
if (ack) {
if (!ack) {
return false;
}
// During calibration, magGain is 1.0, so the read returns normal non-calibrated values.