diff --git a/src/modules/sensors/temp_comp_params_accel.c b/src/modules/sensors/temp_comp_params_accel.c index 8d9dcfd0db..eb1b347d5d 100644 --- a/src/modules/sensors/temp_comp_params_accel.c +++ b/src/modules/sensors/temp_comp_params_accel.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2012-2016 PX4 Development Team. All rights reserved. + * Copyright (c) 2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/src/modules/sensors/temp_comp_params_baro.c b/src/modules/sensors/temp_comp_params_baro.c index 1e0403d116..34c4ae651e 100644 --- a/src/modules/sensors/temp_comp_params_baro.c +++ b/src/modules/sensors/temp_comp_params_baro.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2012-2016 PX4 Development Team. All rights reserved. + * Copyright (c) 2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/src/modules/sensors/temp_comp_params_gyro.c b/src/modules/sensors/temp_comp_params_gyro.c index 82e5475b28..caa6c2102d 100644 --- a/src/modules/sensors/temp_comp_params_gyro.c +++ b/src/modules/sensors/temp_comp_params_gyro.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2012-2016 PX4 Development Team. All rights reserved. + * Copyright (c) 2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/src/modules/sensors/temperature_compensation.cpp b/src/modules/sensors/temperature_compensation.cpp index 619dcbee9b..6bac1edcef 100644 --- a/src/modules/sensors/temperature_compensation.cpp +++ b/src/modules/sensors/temperature_compensation.cpp @@ -52,8 +52,7 @@ int initialize_parameter_handles(ParameterHandles ¶meter_handles) char nbuf[16]; /* rate gyro calibration parameters */ - sprintf(nbuf, "TC_G_ENABLE"); - parameter_handles.gyro_tc_enable = param_find(nbuf); + parameter_handles.gyro_tc_enable = param_find("TC_G_ENABLE"); for (unsigned j = 0; j < 3; j++) { sprintf(nbuf, "TC_G%d_ID", j); @@ -81,8 +80,7 @@ int initialize_parameter_handles(ParameterHandles ¶meter_handles) } /* accelerometer calibration parameters */ - sprintf(nbuf, "TC_A_ENABLE"); - parameter_handles.accel_tc_enable = param_find(nbuf); + parameter_handles.accel_tc_enable = param_find("TC_A_ENABLE"); for (unsigned j = 0; j < 3; j++) { sprintf(nbuf, "TC_A%d_ID", j); @@ -110,8 +108,7 @@ int initialize_parameter_handles(ParameterHandles ¶meter_handles) } /* barometer calibration parameters */ - sprintf(nbuf, "TC_B_ENABLE"); - parameter_handles.baro_tc_enable = param_find(nbuf); + parameter_handles.baro_tc_enable = param_find("TC_B_ENABLE"); for (unsigned j = 0; j < 3; j++) { sprintf(nbuf, "TC_B%d_ID", j);