From 73ac2d90cf991260e7bb74605ff5d7e9aca3c58a Mon Sep 17 00:00:00 2001 From: Johan Jansen Date: Sun, 8 Mar 2015 22:18:28 +0100 Subject: [PATCH] AttPosEKF: Compile fix for missing braces --- src/modules/ekf_att_pos_estimator/estimator_22states.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ekf_att_pos_estimator/estimator_22states.cpp b/src/modules/ekf_att_pos_estimator/estimator_22states.cpp index cd0ef206eb..5c01286e30 100644 --- a/src/modules/ekf_att_pos_estimator/estimator_22states.cpp +++ b/src/modules/ekf_att_pos_estimator/estimator_22states.cpp @@ -2552,7 +2552,7 @@ void AttPosEKF::setOnGround(const bool isLanded) bool isMovingForward = _accNavMagHorizontal > 0.5f; // don't update magnetic field states if on ground or not using compass - inhibitMagStates = !useCompass || _onGround) || (!_isFixedWing && !isMovingForward); + inhibitMagStates = (!useCompass || _onGround) || (!_isFixedWing && !isMovingForward); // don't update terrain offset state if there is no range finder and flying at low velocity or without GPS if ((_onGround || !useGPS) && !useRangeFinder) {