mirror of https://github.com/ArduPilot/ardupilot
AP_Compass: fixed dup semaphore bug
thanks to Lucas for spotting this!
This commit is contained in:
parent
f31a017ace
commit
02c2ba1331
|
@ -277,8 +277,6 @@ bool AP_Compass_LSM303D::init()
|
|||
set_external(_compass_instance, false);
|
||||
#endif
|
||||
|
||||
_sem = hal.util->new_semaphore();
|
||||
|
||||
// read at 100Hz
|
||||
_dev->register_periodic_callback(10000, FUNCTOR_BIND_MEMBER(&AP_Compass_LSM303D::_update, bool));
|
||||
|
||||
|
|
Loading…
Reference in New Issue