The pins on ADC2 are configured and read differently from the pins on ADC1, so everything has to be done differently.
The code in this commit works perfectly for reading pins on both ADC1 and ADC2 in a non-SensESP project that I've been working on, but I currently have no Signal K / SensESP project going, so I can't really test this properly.
(Sorry, missed the notification email.) Thanks! Looks good to me, but I'll keep it open until I can test it (or someone else verifies it works as intended).
The pins on ADC2 are configured and read differently from the pins on ADC1, so everything has to be done differently.
The code in this commit works perfectly for reading pins on both ADC1 and ADC2 in a non-SensESP project that I've been working on, but I currently have no Signal K / SensESP project going, so I can't really test this properly.