mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Arming: add and use HAL_BUTTON_ENABLE
This commit is contained in:
parent
3ead096329
commit
4ae3ad555d
@ -876,11 +876,13 @@ bool AP_Arming::system_checks(bool report)
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#if HAL_BUTTON_ENABLED
|
||||
const auto &button = AP::button();
|
||||
if (!button.arming_checks(sizeof(buffer), buffer)) {
|
||||
check_failed(ARMING_CHECK_PARAMETERS, report, "%s", buffer);
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user