Fixed incorrect signature in the CDC and DFU class bootloaders for the ATMEGA8U2.
[pub/USBasp.git] / Demos / Host / Incomplete / AudioInputHost / AudioInputHost.c
index 8c98bcf..6fe869c 100644 (file)
@@ -216,8 +216,7 @@ void Audio_Task(void)
                        DDRC   |= (1 << 6);\r
 \r
                        /* PWM speaker timer initialization */\r
-                       TCCR3A  = ((1 << WGM30) | (1 << COM3A1) | (1 << COM3A0)\r
-                                       | (1 << COM3B1) | (1 << COM3B0)); // Set on match, clear on TOP\r
+                       TCCR3A  = ((1 << WGM30) | (1 << COM3A1) | (1 << COM3A0)); // Set on match, clear on TOP\r
                        TCCR3B  = ((1 << WGM32) | (1 << CS30));  // Fast 8-Bit PWM, F_CPU speed\r
                        \r
                        puts_P(PSTR("Microphone Enumerated.\r\n"));\r
@@ -225,6 +224,7 @@ void Audio_Task(void)
                        USB_HostState = HOST_STATE_Configured;\r
                        break;\r
                case HOST_STATE_Configured:\r
+                       /* Do nothing - audio stream is handled by the timer interrupt routine */\r
                        break;\r
        }\r
 }\r
@@ -269,6 +269,5 @@ ISR(TIMER0_COMPA_vect, ISR_BLOCK)
        }\r
        \r
        Pipe_Freeze();\r
-\r
        Pipe_SelectPipe(PrevPipe);\r
 }\r