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.
This commit is contained in:
parent
4e99625f7c
commit
f79f9abd28
6 changed files with 8 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue