diff options
author | Dean Camera <[email protected]> | 2010-03-24 05:50:09 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-03-24 05:50:09 +0000 |
commit | f79f9abd28040d839b02ea22cdfde3d0a34f3482 (patch) | |
tree | cf9a30b0536dd642aa5768b7dac52ab04e56b003 /Demos/Device/ClassDriver | |
parent | 4e99625f7cd9ccd10251c871670b286536483333 (diff) | |
download | qmk_firmware-f79f9abd28040d839b02ea22cdfde3d0a34f3482.tar.gz qmk_firmware-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/ClassDriver')
-rw-r--r-- | Demos/Device/ClassDriver/AudioInput/AudioInput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/AudioInput/AudioInput.c b/Demos/Device/ClassDriver/AudioInput/AudioInput.c index b90ee51259..22d0173a9f 100644 --- a/Demos/Device/ClassDriver/AudioInput/AudioInput.c +++ b/Demos/Device/ClassDriver/AudioInput/AudioInput.c @@ -104,7 +104,7 @@ void ProcessNextSample(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
Audio_Device_WriteSample16(&Microphone_Audio_Interface, AudioSample);
|