forked from Archive/PX4-Autopilot
temperature_compensation: use set_sensor_id_mag for Mag
This commit is contained in:
parent
80f20e619c
commit
23cebd6cf2
|
@ -106,7 +106,7 @@ void TemperatureCompensationModule::parameters_update()
|
|||
sensor_mag_s report;
|
||||
|
||||
if (_mag_subs[uorb_index].copy(&report)) {
|
||||
int temp = _temperature_compensation.set_sensor_id_accel(report.device_id, uorb_index);
|
||||
int temp = _temperature_compensation.set_sensor_id_mag(report.device_id, uorb_index);
|
||||
|
||||
if (temp < 0) {
|
||||
PX4_INFO("No temperature calibration available for mag %" PRIu8 " (device id %" PRIu32 ")", uorb_index,
|
||||
|
|
Loading…
Reference in New Issue