temperature_compensation: rename TC_A_ENABLE to TC_M_ENABLE for mag.cpp

This commit is contained in:
Igor Mišić 2024-01-23 19:14:42 +01:00
parent 35b0e93387
commit 8b96cd5372

View File

@ -163,10 +163,10 @@ int TemperatureCalibrationMag::finish()
}
int32_t enabled = 1;
int result = param_set_no_notification(param_find("TC_A_ENABLE"), &enabled);
int result = param_set_no_notification(param_find("TC_M_ENABLE"), &enabled);
if (result != PX4_OK) {
PX4_ERR("unable to reset TC_A_ENABLE (%i)", result);
PX4_ERR("unable to reset TC_M_ENABLE (%i)", result);
}
return result;