mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
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);
|
set_external(_compass_instance, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_sem = hal.util->new_semaphore();
|
|
||||||
|
|
||||||
// read at 100Hz
|
// read at 100Hz
|
||||||
_dev->register_periodic_callback(10000, FUNCTOR_BIND_MEMBER(&AP_Compass_LSM303D::_update, bool));
|
_dev->register_periodic_callback(10000, FUNCTOR_BIND_MEMBER(&AP_Compass_LSM303D::_update, bool));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user