aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-01-19 13:22:44 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-01-19 13:22:44 +0100
commit7d13318df87a97d2793e7c0bd078660cd58dc7f7 (patch)
treea842614beec8f3ed8626c5e687e4647ca4949478
parentb85f0ab3cddeb93e92064de92a2065297c34b28c (diff)
downloadpx4-firmware-7d13318df87a97d2793e7c0bd078660cd58dc7f7.tar.gz
px4-firmware-7d13318df87a97d2793e7c0bd078660cd58dc7f7.tar.bz2
px4-firmware-7d13318df87a97d2793e7c0bd078660cd58dc7f7.zip
Fix coverity CID 12451
-rw-r--r--src/modules/commander/commander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index 3c71195fb..adf1b0950 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -1340,7 +1340,7 @@ int commander_thread_main(int argc, char *argv[])
status.vtol_fw_permanent_stab = vtol_status.fw_permanent_stab;
/* Make sure that this is only adjusted if vehicle realy is of type vtol*/
- if (status.system_type == VEHICLE_TYPE_VTOL_DUOROTOR || VEHICLE_TYPE_VTOL_QUADROTOR) {
+ if ((status.system_type == VEHICLE_TYPE_VTOL_DUOROTOR) || (status.system_type == VEHICLE_TYPE_VTOL_QUADROTOR)) {
status.is_rotary_wing = vtol_status.vtol_in_rw_mode;
}
}