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:
hdiethelm
2018-11-01 10:44:41 -04:00
committed by Daniel Agar
parent 662c206ceb
commit 33422700de
4 changed files with 168 additions and 139 deletions
@@ -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;
}