MPU6000: unadvertises the accel and gyro uORB topics in destructor

This commit is contained in:
Karl Schwabe 2018-03-21 14:18:55 +01:00 committed by Daniel Agar
parent cb30d66cef
commit d952fe028e

View File

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