Skip to content
Snippets Groups Projects
Commit 80c348d3 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

temperature_compensation: fix return value for set_sensor_id

got dropped during rebase cleanup
parent c07fd1a3
No related branches found
No related tags found
No related merge requests found
......@@ -351,12 +351,11 @@ int TemperatureCompensation::set_sensor_id(uint32_t device_id, int topic_instanc
for (int i = 0; i < SENSOR_COUNT_MAX; ++i) {
if (device_id == sensor_cal_data[i].ID) {
sensor_data.device_mapping[topic_instance] = i;
return 0;
return i;
}
}
return -1;
}
int TemperatureCompensation::apply_corrections_gyro(int topic_instance, math::Vector<3> &sensor_data, float temperature,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment