mirror of https://github.com/ArduPilot/ardupilot
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) {
|
||||
_pin = pin;
|
||||
return true;
|
||||
return pin != ANALOG_INPUT_NONE;
|
||||
}
|
||||
|
||||
void AnalogIn::init() {
|
||||
|
|
Loading…
Reference in New Issue