AP_Arming: don't arming check servo functions set to GPIO

This commit is contained in:
Iampete1 2022-03-04 22:52:04 +00:00 committed by Randy Mackay
parent a9f8e8144d
commit 121080f77a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }