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

Fix hmc5883 detection broken in c6f5b98a79

This commit is contained in:
Dominic Clifton 2015-09-19 14:30:27 +01:00 committed by ProDrone
parent bfd7399f56
commit aa3e4501bd

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.