Fixed minor issue with the RNDISEthernet demo DHCP protocol decoder routine using...
[pub/lufa.git] / Demos / Device / AudioInput / AudioInput.c
index f41306f..fca24c3 100644 (file)
@@ -95,7 +95,7 @@ EVENT_HANDLER(USB_Connect)
        UpdateStatus(Status_USBEnumerating);\r
 \r
        /* Sample reload timer initialization */\r
-       OCR0A   = (F_CPU / AUDIO_SAMPLE_FREQUENCY);\r
+       OCR0A   = (F_CPU / AUDIO_SAMPLE_FREQUENCY) - 1;\r
        TCCR0A  = (1 << WGM01);  // CTC mode\r
        TCCR0B  = (1 << CS00);   // Fcpu speed\r
 }\r