summaryrefslogtreecommitdiff
path: root/Demos/Device/LowLevel/AudioInput/AudioInput.c
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-11-20 06:56:43 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-11-20 06:56:43 +0000
commitde3943f2efaec2107dd3a6574e3a74b24c4e8ab3 (patch)
treeb79eaa41d1df490b6cf137d514c4ca33b14c9c97 /Demos/Device/LowLevel/AudioInput/AudioInput.c
parent1ea517948389756f7b3346644508e1a151f2582d (diff)
Fixed Endpoint_Write_Control_Stream_* functions not sending a terminating IN when the given data length is zero.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@905 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Device/LowLevel/AudioInput/AudioInput.c')
-rw-r--r--Demos/Device/LowLevel/AudioInput/AudioInput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Device/LowLevel/AudioInput/AudioInput.c b/Demos/Device/LowLevel/AudioInput/AudioInput.c
index 572e307b..a61ff593 100644
--- a/Demos/Device/LowLevel/AudioInput/AudioInput.c
+++ b/Demos/Device/LowLevel/AudioInput/AudioInput.c
@@ -169,10 +169,10 @@ void USB_Audio_Task(void)
/* Audio sample is ADC value scaled to fit the entire range */
int16_t AudioSample = ((SAMPLE_MAX_RANGE / ADC_MAX_RANGE) * ADC_GetResult());
-#if defined(MICROPHONE_BIASED_TO_HALF_RAIL)
+ #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));
-#endif
+ #endif
/* Write the sample to the buffer */
Endpoint_Write_Word_LE(AudioSample);