Corrected bug in ADC. Was waiting for bit set instead of clear.
Manual mode debugged and working.
Merge remote-tracking branch 'upstream/master'