USB_Init();\r
\r
/* Start the ADC conversion in free running mode */\r
- ADC_StartReading(ADC_REFERENCE_AVCC | ADC_RIGHT_ADJUSTED | MIC_IN_ADC_CHANNEL);\r
+ ADC_StartReading(ADC_REFERENCE_AVCC | ADC_RIGHT_ADJUSTED | MIC_IN_ADC_MUX_MASK);\r
}\r
\r
/** Event handler for the USB_Connect event. This indicates that the device is enumerating via the status LEDs, and\r
\r
#if defined(MICROPHONE_BIASED_TO_HALF_RAIL)\r
/* Microphone is biased to half rail voltage, subtract the bias from the sample value */\r
- AudioSample -= (SAMPLE_MAX_RANGE / 2));\r
+ AudioSample -= (SAMPLE_MAX_RANGE / 2);\r
#endif\r
\r
/* Write the sample to the buffer */\r