Browse Source

MPU6000: unadvertises the accel and gyro uORB topics in destructor

sbg
Karl Schwabe 7 years ago committed by Daniel Agar
parent
commit
d952fe028e
  1. 3
      src/drivers/imu/mpu6000/mpu6000.cpp

3
src/drivers/imu/mpu6000/mpu6000.cpp

@ -594,6 +594,9 @@ MPU6000::~MPU6000() @@ -594,6 +594,9 @@ MPU6000::~MPU6000()
/* make sure we are truly inactive */
stop();
orb_unadvertise(_accel_topic);
orb_unadvertise(_gyro->_gyro_topic);
/* delete the gyro subdriver */
delete _gyro;

Loading…
Cancel
Save