mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Arming: add and use AP_RPM_ENABLED
... and backend-specific equivalents
This commit is contained in:
parent
586f0c45ac
commit
4fc4e7c532
@ -987,11 +987,13 @@ bool AP_Arming::system_checks(bool report)
|
||||
}
|
||||
|
||||
if (check_enabled(ARMING_CHECK_PARAMETERS)) {
|
||||
#if AP_RPM_ENABLED
|
||||
auto *rpm = AP::rpm();
|
||||
if (rpm && !rpm->arming_checks(sizeof(buffer), buffer)) {
|
||||
check_failed(ARMING_CHECK_PARAMETERS, report, "%s", buffer);
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
auto *relay = AP::relay();
|
||||
if (relay && !relay->arming_checks(sizeof(buffer), buffer)) {
|
||||
check_failed(ARMING_CHECK_PARAMETERS, report, "%s", buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user