mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: fixed RSSI from IOMCU analog pin 103
need to check new pin not old pin
This commit is contained in:
parent
bcc548bbd8
commit
ed18123f95
|
@ -156,7 +156,7 @@ bool AnalogSource::set_pin(uint8_t pin)
|
|||
return true;
|
||||
}
|
||||
bool found_pin = false;
|
||||
if (_pin == ANALOG_SERVO_VRSSI_PIN) {
|
||||
if (pin == ANALOG_SERVO_VRSSI_PIN) {
|
||||
found_pin = true;
|
||||
} else {
|
||||
for (uint8_t i=0; i<ADC_GRP1_NUM_CHANNELS; i++) {
|
||||
|
|
Loading…
Reference in New Issue