HAL_ChibiOS: fixed RSSI from IOMCU analog pin 103

need to check new pin not old pin
This commit is contained in:
Andrew Tridgell 2022-05-08 20:31:59 +10:00
parent 24234865e5
commit bdc900495c
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {