Arming: use baro healthy() function

This commit is contained in:
Randy Mackay 2014-08-13 22:53:15 +09:00
parent 78b1bf8282
commit 280db8725a
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ bool AP_Arming::barometer_checks(bool report)
{
if ((checks_to_perform & ARMING_CHECK_ALL) ||
(checks_to_perform & ARMING_CHECK_BARO)) {
if (! barometer.healthy) {
if (! barometer.healthy()) {
if (report) {
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: Baro not healthy!"));
}