diff options
author | Andrew Tridgell <tridge@samba.org> | 2014-11-26 11:37:56 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2014-11-26 11:39:41 +1100 |
commit | 809500cfcd220e65d7eb301e33533c5fe29f03d8 (patch) | |
tree | bb3fd0f713719aeb0f485380f0fb40fd4da01a2b /src/drivers/px4io/px4io.cpp | |
parent | 7cb613bb264499e56ad2743c75d563117978eddb (diff) | |
download | px4-firmware-809500cfcd220e65d7eb301e33533c5fe29f03d8.tar.gz px4-firmware-809500cfcd220e65d7eb301e33533c5fe29f03d8.tar.bz2 px4-firmware-809500cfcd220e65d7eb301e33533c5fe29f03d8.zip |
px4io: fixed RC_CONFIG channel limit check
number of channels is the right test, not number of actuators
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 6f02ba62c..e61454b00 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -2592,7 +2592,7 @@ PX4IO::ioctl(file * filep, int cmd, unsigned long arg) on param_get() */ struct pwm_output_rc_config* config = (struct pwm_output_rc_config*)arg; - if (config->channel >= _max_actuators) { + if (config->channel >= RC_INPUT_MAX_CHANNELS) { /* fail with error */ return E2BIG; } |