X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/41b54a2acd2d5515cc7f3f1ed1c3d3b17d1988a1..41babf1cb78a2a8e05f40f5de61c3f52bb794fc4:/Demos/Device/LowLevel/AudioOutput/AudioOutput.c?ds=inline diff --git a/Demos/Device/LowLevel/AudioOutput/AudioOutput.c b/Demos/Device/LowLevel/AudioOutput/AudioOutput.c index c814c8ce5..352d07482 100644 --- a/Demos/Device/LowLevel/AudioOutput/AudioOutput.c +++ b/Demos/Device/LowLevel/AudioOutput/AudioOutput.c @@ -30,7 +30,7 @@ /** \file * - * Main source file for the Audio Output demo. This file contains the main tasks of the demo and + * Main source file for the AudioOutput demo. This file contains the main tasks of the demo and * is responsible for the initial application hardware configuration. */ @@ -231,16 +231,16 @@ void USB_Audio_Task(void) /* Make mixed sample value positive (absolute) */ MixedSample_8Bit = abs(MixedSample_8Bit); - if (MixedSample_8Bit > ((128 / 8) * 1)) + if (MixedSample_8Bit > 2) LEDMask |= LEDS_LED1; - if (MixedSample_8Bit > ((128 / 8) * 2)) + if (MixedSample_8Bit > 4) LEDMask |= LEDS_LED2; - if (MixedSample_8Bit > ((128 / 8) * 3)) + if (MixedSample_8Bit > 8) LEDMask |= LEDS_LED3; - if (MixedSample_8Bit > ((128 / 8) * 4)) + if (MixedSample_8Bit > 16) LEDMask |= LEDS_LED4; LEDs_SetAllLEDs(LEDMask);