Rewrote ADC switching logic so that it actually works :)