Documentation improvements - put driver example code into its own section, fix incorr...
[pub/USBasp.git] / Demos / Device / LowLevel / AudioOutput / AudioOutput.c
index 6e7d818..178fd5b 100644 (file)
@@ -80,7 +80,7 @@ void EVENT_USB_Device_Connect(void)
 
        /* Sample reload timer initialization */
        TIMSK0 = (1 << OCIE0A);
 
        /* Sample reload timer initialization */
        TIMSK0 = (1 << OCIE0A);
-       OCR0A  = (F_CPU / 8 / AUDIO_SAMPLE_FREQUENCY) - 1;
+       OCR0A  = ((F_CPU / 8 / AUDIO_SAMPLE_FREQUENCY) - 1);
        TCCR0A = (1 << WGM01);  // CTC mode
        TCCR0B = (1 << CS01);   // Fcpu/8 speed
 
        TCCR0A = (1 << WGM01);  // CTC mode
        TCCR0B = (1 << CS01);   // Fcpu/8 speed