AP_Arming: use check_enabled() in storage check

This commit is contained in:
Andrew Tridgell 2018-06-30 19:11:34 +10:00
parent bf1bca6820
commit 9ca2c11333
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ bool AP_Arming::board_voltage_checks(bool report)
*/
bool AP_Arming::system_checks(bool report)
{
if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_SYSTEM)) {
if (check_enabled(ARMING_CHECK_SYSTEM)) {
if (!hal.storage->healthy()) {
check_failed(ARMING_CHECK_SYSTEM, report, "Param storage failed");
}