temperature_compensation: use set_sensor_id_mag for Mag

This commit is contained in:
Igor Mišić 2024-01-29 20:26:54 +01:00 committed by Daniel Agar
parent 80f20e619c
commit 23cebd6cf2
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ void TemperatureCompensationModule::parameters_update()
sensor_mag_s report; sensor_mag_s report;
if (_mag_subs[uorb_index].copy(&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) { if (temp < 0) {
PX4_INFO("No temperature calibration available for mag %" PRIu8 " (device id %" PRIu32 ")", uorb_index, PX4_INFO("No temperature calibration available for mag %" PRIu8 " (device id %" PRIu32 ")", uorb_index,