AP_RangeFinder: MaxsonarI2C formatting fixes

This commit is contained in:
Randy Mackay 2018-05-22 21:38:12 +09:00
parent 25475b65d9
commit fd2e5741ce
1 changed files with 2 additions and 4 deletions

View File

@ -72,7 +72,6 @@ bool AP_RangeFinder_MaxsonarI2CXL::_init(void)
if (!_dev->get_semaphore()->take(HAL_SEMAPHORE_BLOCK_FOREVER)) {
return false;
}
if (!start_reading()) {
_dev->get_semaphore()->give();
@ -89,10 +88,10 @@ bool AP_RangeFinder_MaxsonarI2CXL::_init(void)
}
_dev->get_semaphore()->give();
_dev->register_periodic_callback(50000,
FUNCTOR_BIND_MEMBER(&AP_RangeFinder_MaxsonarI2CXL::_timer, void));
return true;
}
@ -139,7 +138,6 @@ void AP_RangeFinder_MaxsonarI2CXL::_timer(void)
}
}
/*
update the state of the sensor
*/