Skip to content

fix(gpio): use ADC mode when both IN and ADC modes are set

fuchsi* requested to merge fuchsi/firmware:gpio_in_adc_fix into master

Simply changed the order of checks. Previously IN was checked first, ignoring the ADC bit, so gpio.modes.IN | gpio.modes.ADC | gpio.modes.PULL_UP was effectively treated like gpio.modes.IN.

Merge request reports