AP_Compass: fixed dup semaphore bug

thanks to Lucas for spotting this!
This commit is contained in:
Andrew Tridgell 2016-11-08 08:53:47 +11:00
parent f31a017ace
commit 02c2ba1331
1 changed files with 0 additions and 2 deletions

View File

@ -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));