diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-26 14:02:22 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-26 14:02:22 +0200 |
commit | 8edbf72bd50417bcc14195ad34056e8c0e966581 (patch) | |
tree | e8e4c4c1ff4938cab305571f6fcb998884612e23 /src/modules/sensors | |
parent | 76ce611e842ce6daed69adb6fb23de7b5bb5b639 (diff) | |
download | px4-firmware-8edbf72bd50417bcc14195ad34056e8c0e966581.tar.gz px4-firmware-8edbf72bd50417bcc14195ad34056e8c0e966581.tar.bz2 px4-firmware-8edbf72bd50417bcc14195ad34056e8c0e966581.zip |
sensors app: Use right lookup function
Diffstat (limited to 'src/modules/sensors')
-rw-r--r-- | src/modules/sensors/sensors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index 3fc8627c1..7b79d47a8 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -1633,7 +1633,7 @@ Sensors::rc_parameter_map_poll(bool forced) /* Set the handle by index if the index is set, otherwise use the id */ if (_rc_parameter_map.param_index[i] >= 0) { - _parameter_handles.rc_param[i] = param_for_index((unsigned)_rc_parameter_map.param_index[i]); + _parameter_handles.rc_param[i] = param_for_used_index((unsigned)_rc_parameter_map.param_index[i]); } else { _parameter_handles.rc_param[i] = param_find(_rc_parameter_map.param_id[i]); |