mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 17:23:34 +08:00
lis3mdl: fix handling when multiple sensors are available (#10753)
* lis3mdl: Report calibration successful when starting with -C option * lis3mdl: Use PX4_OK, PX4_ERROR for return value / orb_unadvertise * Fixes #10740
This commit is contained in:
@@ -99,6 +99,10 @@ LIS3MDL::~LIS3MDL()
|
||||
/* make sure we are truly inactive */
|
||||
stop();
|
||||
|
||||
if (_mag_topic != nullptr) {
|
||||
orb_unadvertise(_mag_topic);
|
||||
}
|
||||
|
||||
if (_reports != nullptr) {
|
||||
delete _reports;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user