diff options
author | Don Gagne <don@thegagnes.com> | 2014-06-29 12:01:43 -0700 |
---|---|---|
committer | Don Gagne <don@thegagnes.com> | 2014-06-29 12:01:43 -0700 |
commit | d5b5dcef24a7f5c7b2ed98081dd69a05f8d46959 (patch) | |
tree | 7e0e12ed525d6699c0128eb4137061a6ad0248f3 /src/drivers/px4fmu/fmu.cpp | |
parent | 94c69e11ae1ec44c80eec1c979201c7d7e51cdb0 (diff) | |
download | px4-firmware-d5b5dcef24a7f5c7b2ed98081dd69a05f8d46959.tar.gz px4-firmware-d5b5dcef24a7f5c7b2ed98081dd69a05f8d46959.tar.bz2 px4-firmware-d5b5dcef24a7f5c7b2ed98081dd69a05f8d46959.zip |
Fix bugs found through compiler warnings
Diffstat (limited to 'src/drivers/px4fmu/fmu.cpp')
-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; } |