From 23cebd6cf25b098cec1b50447186536d6620a8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Mi=C5=A1i=C4=87?= Date: Mon, 29 Jan 2024 20:26:54 +0100 Subject: [PATCH] temperature_compensation: use set_sensor_id_mag for Mag --- .../temperature_compensation/TemperatureCompensationModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/temperature_compensation/TemperatureCompensationModule.cpp b/src/modules/temperature_compensation/TemperatureCompensationModule.cpp index 1ed3283c32..ec19359181 100644 --- a/src/modules/temperature_compensation/TemperatureCompensationModule.cpp +++ b/src/modules/temperature_compensation/TemperatureCompensationModule.cpp @@ -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,