mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
MPU6000: unadvertises the accel and gyro uORB topics in destructor
This commit is contained in:
parent
cb30d66cef
commit
d952fe028e
@ -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…
x
Reference in New Issue
Block a user