From 4740568446a7605211d5443725ed487d171e15af Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 14 Feb 2015 20:38:03 +0100 Subject: sensors: Update param name --- src/modules/sensors/sensors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index a657e979d..8ec986ddb 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -1527,7 +1527,7 @@ Sensors::parameter_update_poll(bool forced) /* if the old param is non-zero, set the new one to the same value */ if ((deprecated_mag_rot != 0) && (mag_rot <= 0)) { mag_rot = deprecated_mag_rot; - param_set_no_notification(param_find("CAL_MAG0_ROT"), &mag_rot); + param_set_no_notification(param_find(str), &mag_rot); } } -- cgit v1.2.3