Compass_HMC5843: remove unnecessary i2c semaphore give

This commit is contained in:
Randy Mackay 2015-08-07 15:07:58 +09:00
parent 92a7a3e6ff
commit 66469d7529

View File

@ -116,7 +116,6 @@ bool AP_Compass_HMC5843::read_raw()
if (hal.i2c->readRegisters(COMPASS_ADDRESS, 0x03, 6, buff) != 0) {
hal.i2c->setHighSpeed(false);
_retry_time = hal.scheduler->millis() + 1000;
_i2c_sem->give();
return false;
}