aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/AudioInput/AudioInput.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-03-24 05:50:09 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-03-24 05:50:09 +0000
commitf79f9abd28040d839b02ea22cdfde3d0a34f3482 (patch)
treecf9a30b0536dd642aa5768b7dac52ab04e56b003 /Demos/Device/LowLevel/AudioInput/AudioInput.c
parent4e99625f7cd9ccd10251c871670b286536483333 (diff)
downloadlufa-f79f9abd28040d839b02ea22cdfde3d0a34f3482.tar.gz
lufa-f79f9abd28040d839b02ea22cdfde3d0a34f3482.tar.bz2
lufa-f79f9abd28040d839b02ea22cdfde3d0a34f3482.zip
Fixed compilation error in the AudioInput demos when MICROPHONE_BIASED_TO_HALF_RAIL is defined (thanks to C. Scott Ananian).
Minor documentation cleanups. Make sure HID class driver uses properly cast pointers when writing to the report buffer.
Diffstat (limited to 'Demos/Device/LowLevel/AudioInput/AudioInput.c')
-rw-r--r--Demos/Device/LowLevel/AudioInput/AudioInput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/LowLevel/AudioInput/AudioInput.c b/Demos/Device/LowLevel/AudioInput/AudioInput.c
index 2d718e53c..392609b07 100644
--- a/Demos/Device/LowLevel/AudioInput/AudioInput.c
+++ b/Demos/Device/LowLevel/AudioInput/AudioInput.c
@@ -171,7 +171,7 @@ void USB_Audio_Task(void)
#if defined(MICROPHONE_BIASED_TO_HALF_RAIL)
/* Microphone is biased to half rail voltage, subtract the bias from the sample value */
- AudioSample -= (SAMPLE_MAX_RANGE / 2));
+ AudioSample -= (SAMPLE_MAX_RANGE / 2);
#endif
/* Write the sample to the buffer */