BaroGlitch: use baro healthy()

This commit is contained in:
Randy Mackay 2014-08-13 22:53:35 +09:00
parent 280db8725a
commit 53b073148b

View File

@ -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;
}