diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-27 21:56:54 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-27 21:56:54 +0100 |
commit | f44f738f0ade4c5ba60a64aa92a2b4447c6f1d1d (patch) | |
tree | e419f8202035dfe49a8406b2ded9d412f99c850d /src/drivers/px4io/px4io.cpp | |
parent | 965a7a4f0313ccfe67e6c0f84d76ff3350602fb0 (diff) | |
download | px4-firmware-f44f738f0ade4c5ba60a64aa92a2b4447c6f1d1d.tar.gz px4-firmware-f44f738f0ade4c5ba60a64aa92a2b4447c6f1d1d.tar.bz2 px4-firmware-f44f738f0ade4c5ba60a64aa92a2b4447c6f1d1d.zip |
Fix return value
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index cac7bf608..0a979267d 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -850,7 +850,7 @@ PX4IO::task_main() /* we're not nice to the lower-priority control groups and only check them when the primary group updated (which is now). */ - io_set_control_groups(); + (void)io_set_control_groups(); } if (now >= poll_last + IO_POLL_INTERVAL) { @@ -962,14 +962,14 @@ out: int PX4IO::io_set_control_groups() { - bool attitude_ok = io_set_control_state(0); + ret = io_set_control_state(0); /* send auxiliary control groups */ (void)io_set_control_state(1); (void)io_set_control_state(2); (void)io_set_control_state(3); - return attitude_ok; + return ret; } int |