mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
MPU6000: unadvertises the accel and gyro uORB topics in destructor
This commit is contained in:
committed by
Daniel Agar
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user