From 0c3be8b782d5c9ace6e16fdb99488855e1f529ce Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 16 Oct 2022 21:52:52 +1100 Subject: [PATCH] AP_Arming: use baro arming checks call --- libraries/AP_Arming/AP_Arming.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 265a149377..4073de0fcc 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -264,8 +264,9 @@ bool AP_Arming::barometer_checks(bool report) #endif if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_BARO)) { - if (!AP::baro().all_healthy()) { - check_failed(ARMING_CHECK_BARO, report, "Barometer not healthy"); + char buffer[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN+1] {}; + if (!AP::baro().arming_checks(sizeof(buffer), buffer)) { + check_failed(ARMING_CHECK_BARO, report, "Baro: %s", buffer); return false; } }