Skip to content
Snippets Groups Projects
Commit d952fe02 authored by Karl Schwabe's avatar Karl Schwabe Committed by Daniel Agar
Browse files

MPU6000: unadvertises the accel and gyro uORB topics in destructor

parent cb30d66c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment