Browse Source

AP_Compass: fixed dup semaphore bug

thanks to Lucas for spotting this!
mission-4.1.18
Andrew Tridgell 8 years ago
parent
commit
02c2ba1331
  1. 2
      libraries/AP_Compass/AP_Compass_LSM303D.cpp

2
libraries/AP_Compass/AP_Compass_LSM303D.cpp

@ -277,8 +277,6 @@ bool AP_Compass_LSM303D::init() @@ -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…
Cancel
Save