Skip to content

Commit

Permalink
AP_HAL_SITL: AnalogIn: return false for set pin to ANALOG_INPUT_NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Jul 2, 2024
1 parent 3074809 commit 2ccd89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_SITL/AnalogIn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2ccd89c

Please sign in to comment.