diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-03-16 12:12:28 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-03-16 12:12:28 +0100 |
commit | ed197b5b59c56cf7de5e7ffc425f1e35f1b19a7c (patch) | |
tree | 37fc41bc8bcc4db614d76c2eb21fe08ec43b6104 /src/modules/px4iofirmware/mixer.cpp | |
parent | 939b8464a2ccea462b1e85b55757e065328d084b (diff) | |
parent | 955bd402d2fb398fb64c55a885306b7054b55ce0 (diff) | |
download | px4-firmware-ed197b5b59c56cf7de5e7ffc425f1e35f1b19a7c.tar.gz px4-firmware-ed197b5b59c56cf7de5e7ffc425f1e35f1b19a7c.tar.bz2 px4-firmware-ed197b5b59c56cf7de5e7ffc425f1e35f1b19a7c.zip |
Merged beta_mavlink2 / master
Diffstat (limited to 'src/modules/px4iofirmware/mixer.cpp')
-rw-r--r-- | src/modules/px4iofirmware/mixer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/mixer.cpp b/src/modules/px4iofirmware/mixer.cpp index 6a4429461..9558198f3 100644 --- a/src/modules/px4iofirmware/mixer.cpp +++ b/src/modules/px4iofirmware/mixer.cpp @@ -267,7 +267,7 @@ mixer_callback(uintptr_t handle, uint8_t control_index, float &control) { - if (control_group > 3) + if (control_group >= PX4IO_CONTROL_GROUPS) return -1; switch (source) { |