From 70a02f31ab6fe9447adfb55c9ed57db44a61985a Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Sun, 10 May 2020 18:13:06 +1000 Subject: [PATCH] ArduPlane: More efficient type use --- ArduPlane/ekf_check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/ekf_check.cpp b/ArduPlane/ekf_check.cpp index d888a3d3d7..738f63424e 100644 --- a/ArduPlane/ekf_check.cpp +++ b/ArduPlane/ekf_check.cpp @@ -20,7 +20,7 @@ //////////////////////////////////////////////////////////////////////////////// static struct { uint8_t fail_count; // number of iterations ekf or dcm have been out of tolerances - uint8_t bad_variance : 1; // true if ekf should be considered untrusted (fail_count has exceeded EKF_CHECK_ITERATIONS_MAX) + bool bad_variance : true; // true if ekf should be considered untrusted (fail_count has exceeded EKF_CHECK_ITERATIONS_MAX) uint32_t last_warn_time; // system time of last warning in milliseconds. Used to throttle text warnings sent to GCS bool failsafe_on; // true when the loss of navigation failsafe is on } ekf_check_state;