AP_Arming: add option to disable relay and servorelay libraries
This commit is contained in:
parent
154ccf4e63
commit
15a004e55a
@ -1047,11 +1047,13 @@ bool AP_Arming::system_checks(bool report)
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#if AP_RELAY_ENABLED
|
||||
auto *relay = AP::relay();
|
||||
if (relay && !relay->arming_checks(sizeof(buffer), buffer)) {
|
||||
check_failed(ARMING_CHECK_PARAMETERS, report, "%s", buffer);
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#if HAL_PARACHUTE_ENABLED
|
||||
auto *chute = AP::parachute();
|
||||
if (chute && !chute->arming_checks(sizeof(buffer), buffer)) {
|
||||
|
Loading…
Reference in New Issue
Block a user