From 53b073148b3108dcb31cec99991b6c74398e4ae4 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 13 Aug 2014 22:53:35 +0900 Subject: [PATCH] BaroGlitch: use baro healthy() --- libraries/AP_Baro/AP_Baro_Glitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Baro/AP_Baro_Glitch.cpp b/libraries/AP_Baro/AP_Baro_Glitch.cpp index 995595ef69..9fe403fc57 100644 --- a/libraries/AP_Baro/AP_Baro_Glitch.cpp +++ b/libraries/AP_Baro/AP_Baro_Glitch.cpp @@ -65,7 +65,7 @@ void Baro_Glitch::check_alt() bool all_ok; // true if the new baro alt passes sanity checks // exit immediately if baro is unhealthy - if (!_baro.healthy) { + if (!_baro.healthy()) { _flags.glitching = true; return; }