diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-30 00:50:38 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-30 00:50:38 +0200 |
commit | 154f14e7476780799108e16bc3c296f0ade85f7b (patch) | |
tree | d5820f728a7884f3d7da78f17547edd8688b3036 /src/drivers/px4fmu | |
parent | 0fe8ed509ad2d45a16eba1fe2683f586e530ee02 (diff) | |
parent | 28a31708f98eefa4ceb04617f2da3dd7892c99fa (diff) | |
download | px4-firmware-154f14e7476780799108e16bc3c296f0ade85f7b.tar.gz px4-firmware-154f14e7476780799108e16bc3c296f0ade85f7b.tar.bz2 px4-firmware-154f14e7476780799108e16bc3c296f0ade85f7b.zip |
Merged master into power_enforce
Diffstat (limited to 'src/drivers/px4fmu')
-rw-r--r-- | src/drivers/px4fmu/fmu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 8a4bfa18c..84ea9a3bc 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -741,7 +741,7 @@ PX4FMU::task_main() } for (unsigned i = 0; i < NUM_ACTUATOR_CONTROL_GROUPS; i++) { - if (_control_subs > 0) { + if (_control_subs[i] > 0) { ::close(_control_subs[i]); _control_subs[i] = -1; } |