projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix incorrect configuration in the ClassDriver AudioOutput demo.
[pub/lufa.git]
/
Demos
/
Device
/
LowLevel
/
AudioOutput
/
AudioOutput.c
diff --git
a/Demos/Device/LowLevel/AudioOutput/AudioOutput.c
b/Demos/Device/LowLevel/AudioOutput/AudioOutput.c
index
c814c8c
..
352d074
100644
(file)
--- a/
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
+++ b/
Demos/Device/LowLevel/AudioOutput/AudioOutput.c
@@
-30,7
+30,7
@@
\r
/** \file
\r
*
\r
\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
* 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
/* 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
LEDMask |= LEDS_LED1;
\r
\r
- if (MixedSample_8Bit >
((128 / 8) * 2)
)
\r
+ if (MixedSample_8Bit >
4
)
\r
LEDMask |= LEDS_LED2;
\r
\r
LEDMask |= LEDS_LED2;
\r
\r
- if (MixedSample_8Bit >
((128 / 8) * 3)
)
\r
+ if (MixedSample_8Bit >
8
)
\r
LEDMask |= LEDS_LED3;
\r
\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
LEDMask |= LEDS_LED4;
\r
\r
LEDs_SetAllLEDs(LEDMask);
\r