aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-11-05 19:26:10 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-11-05 19:26:10 +0100
commit23a33e31cd91d074f2d16d04b0cd7f2c867d9d4b (patch)
tree2a28a6d9054d569ba8dc82fafdc4a61c7fdd554c /src/drivers
parent182c1c1d52ef370a42b99c825e3f45a03ecbcdc9 (diff)
downloadpx4-firmware-23a33e31cd91d074f2d16d04b0cd7f2c867d9d4b.tar.gz
px4-firmware-23a33e31cd91d074f2d16d04b0cd7f2c867d9d4b.tar.bz2
px4-firmware-23a33e31cd91d074f2d16d04b0cd7f2c867d9d4b.zip
Add missing mode switch channel
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/px4io/px4io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp
index c6543982e..6d68d9f60 100644
--- a/src/drivers/px4io/px4io.cpp
+++ b/src/drivers/px4io/px4io.cpp
@@ -1279,7 +1279,7 @@ PX4IO::io_set_rc_config()
if ((ichan >= 0) && (ichan < (int)_max_rc_input)) {
/* use out of normal bounds index to indicate special channel */
- input_map[ichan - 1] = PX4IO_P_RC_CONFIG_ASSIGNMENT_MODESWITCH;
+ input_map[ichan] = PX4IO_P_RC_CONFIG_ASSIGNMENT_MODESWITCH;
}
/*