mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_RangeFinder: skip GPIO arming check on analog backend
This commit is contained in:
parent
b6df8e5cb6
commit
8fe120b3d7
@ -854,6 +854,11 @@ bool RangeFinder::prearm_healthy(char *failure_msg, const uint8_t failure_msg_le
|
|||||||
hal.util->snprintf(failure_msg, failure_msg_len, "RNGFND%u_PIN not set", unsigned(i + 1));
|
hal.util->snprintf(failure_msg, failure_msg_len, "RNGFND%u_PIN not set", unsigned(i + 1));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (drivers[i]->allocated_type() == Type::ANALOG) {
|
||||||
|
// Analog backend does not use GPIO pin
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// ensure that the pin we're configured to use is available
|
// ensure that the pin we're configured to use is available
|
||||||
if (!hal.gpio->valid_pin(params[i].pin)) {
|
if (!hal.gpio->valid_pin(params[i].pin)) {
|
||||||
uint8_t servo_ch;
|
uint8_t servo_ch;
|
||||||
|
Loading…
Reference in New Issue
Block a user