Skip to content

Commit

Permalink
temperature_compensation: fix return value for set_sensor_id
Browse files Browse the repository at this point in the history
got dropped during rebase cleanup
  • Loading branch information
bkueng committed Jan 30, 2017
1 parent 6deb9bc commit 42eefac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/sensors/temperature_compensation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 42eefac

Please sign in to comment.