mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_Arming: allow sketches to use AP_Arming without OpenDroneID
This commit is contained in:
parent
d99e5b91d8
commit
c1fbdd5972
@ -1618,7 +1618,7 @@ AP_Arming::Required AP_Arming::arming_required()
|
||||
{
|
||||
#if AP_OPENDRONEID_ENABLED
|
||||
// cannot be disabled if OpenDroneID is present
|
||||
if (AP::opendroneid().enabled()) {
|
||||
if (AP_OpenDroneID::get_singleton() != nullptr && AP::opendroneid().enabled()) {
|
||||
if (require != Required::YES_MIN_PWM && require != Required::YES_ZERO_PWM) {
|
||||
return Required::YES_MIN_PWM;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user