mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 16:49:51 +08:00
HMC5883: Remove output on driver level. Reporting should be done by the caller, not inside the driver.
This commit is contained in:
@@ -1291,12 +1291,6 @@ int HMC5883::check_calibration()
|
||||
bool scale_valid = (check_scale() == OK);
|
||||
|
||||
if (_calibrated != (offset_valid && scale_valid)) {
|
||||
// too verbose for normal operation
|
||||
if (!offset_valid || !scale_valid) {
|
||||
warnx("mag cal status changed %s%s", (scale_valid) ? "" : "scale invalid ",
|
||||
(offset_valid) ? "" : "offset invalid");
|
||||
}
|
||||
|
||||
_calibrated = (offset_valid && scale_valid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user