Fixed adc_init() function.

See #1418