More comments converted to doxygen style
Replace the delay by a while loop waiting for the ADC to complete

Notice that this code is not "watchdog" safe. If the device never completes
the ADC it will hang forever.