AP_BattMonitor: report arming unhealthy if backend unhealthy

important for i2c based battery backends
This commit is contained in:
Andrew Tridgell 2022-06-21 11:57:41 +10:00
parent 7a8929086e
commit 5cff4ce1c8

View File

@ -184,6 +184,7 @@ bool AP_BattMonitor_Backend::arming_checks(char * buffer, size_t buflen) const
result = result && update_check(buflen, buffer, critical_capacity, "critical capacity failsafe");
result = result && update_check(buflen, buffer, fs_capacity_inversion, "capacity failsafe critical > low");
result = result && update_check(buflen, buffer, fs_voltage_inversion, "voltage failsafe critical > low");
result = result && update_check(buflen, buffer, !_state.healthy, "unhealthy");
return result;
}