Fix incorrect configuration in the ClassDriver AudioOutput demo.
[pub/lufa.git] / Demos / Device / LowLevel / AudioOutput / AudioOutput.c
index c814c8c..352d074 100644 (file)
@@ -30,7 +30,7 @@
 \r
 /** \file\r
  *\r
- *  Main source file for the Audio Output demo. This file contains the main tasks of the demo and\r
+ *  Main source file for the AudioOutput demo. This file contains the main tasks of the demo and\r
  *  is responsible for the initial application hardware configuration.\r
  */\r
  \r
@@ -231,16 +231,16 @@ void USB_Audio_Task(void)
                /* Make mixed sample value positive (absolute) */\r
                MixedSample_8Bit = abs(MixedSample_8Bit);\r
 \r
-               if (MixedSample_8Bit > ((128 / 8) * 1))\r
+               if (MixedSample_8Bit > 2)\r
                  LEDMask |= LEDS_LED1;\r
                  \r
-               if (MixedSample_8Bit > ((128 / 8) * 2))\r
+               if (MixedSample_8Bit > 4)\r
                  LEDMask |= LEDS_LED2;\r
                  \r
-               if (MixedSample_8Bit > ((128 / 8) * 3))\r
+               if (MixedSample_8Bit > 8)\r
                  LEDMask |= LEDS_LED3;\r
 \r
-               if (MixedSample_8Bit > ((128 / 8) * 4))\r
+               if (MixedSample_8Bit > 16)\r
                  LEDMask |= LEDS_LED4;\r
                  \r
                LEDs_SetAllLEDs(LEDMask);\r