Added explicit ADC channel masks for the standard set of ADC channels, as the single...
[pub/USBasp.git] / Demos / Device / LowLevel / AudioInput / AudioInput.c
index 98c2e8b..2d718e5 100644 (file)
@@ -72,7 +72,7 @@ void SetupHardware(void)
        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