From 3c669a4f30a42816db7db9d310c1a7343488231f Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 8 Jan 2018 03:07:48 -0500 Subject: [PATCH] commander ekf2Check respect reportFailures (#8622) - fixes #8621 --- src/modules/commander/PreflightCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/PreflightCheck.cpp b/src/modules/commander/PreflightCheck.cpp index 9b2f9af329..e6879fd79e 100644 --- a/src/modules/commander/PreflightCheck.cpp +++ b/src/modules/commander/PreflightCheck.cpp @@ -795,7 +795,7 @@ bool preflightCheck(orb_advert_t *mavlink_log_pub, bool checkSensors, bool check // don't report ekf failures for the first 10 seconds to allow time for the filter to start bool report_ekf_fail = (time_since_boot > 10 * 1000000); - if (!ekf2Check(mavlink_log_pub, true, (report_ekf_fail && !failed), checkGNSS)) { + if (!ekf2Check(mavlink_log_pub, true, reportFailures && report_ekf_fail && !failed, checkGNSS)) { failed = true; } }