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
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue