mirror of https://github.com/ArduPilot/ardupilot
AP_Arming: don't arming check servo functions set to GPIO
This commit is contained in:
parent
a9f8e8144d
commit
121080f77a
|
@ -796,7 +796,7 @@ bool AP_Arming::servo_checks(bool report) const
|
||||||
bool check_passed = true;
|
bool check_passed = true;
|
||||||
for (uint8_t i = 0; i < NUM_SERVO_CHANNELS; i++) {
|
for (uint8_t i = 0; i < NUM_SERVO_CHANNELS; i++) {
|
||||||
const SRV_Channel *c = SRV_Channels::srv_channel(i);
|
const SRV_Channel *c = SRV_Channels::srv_channel(i);
|
||||||
if (c == nullptr || c->get_function() == SRV_Channel::k_none) {
|
if (c == nullptr || c->get_function() <= SRV_Channel::k_none) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue