mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_HAL_SITL: AnalogIn: return false for set pin to ANALOG_INPUT_NONE
This commit is contained in:
parent
fb40a7f19d
commit
b75c62d267
@ -62,7 +62,7 @@ float ADCSource::read_latest() {
|
|||||||
|
|
||||||
bool ADCSource::set_pin(uint8_t pin) {
|
bool ADCSource::set_pin(uint8_t pin) {
|
||||||
_pin = pin;
|
_pin = pin;
|
||||||
return true;
|
return pin != ANALOG_INPUT_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnalogIn::init() {
|
void AnalogIn::init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user