aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/ClassDriver/AudioInput/AudioInput.c
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-11-20 06:56:43 +0000
committerDean Camera <[email protected]>2009-11-20 06:56:43 +0000
commit6c38ca28907034aa9a5f294dc26f98d90234dea8 (patch)
treeb79eaa41d1df490b6cf137d514c4ca33b14c9c97 /Demos/Device/ClassDriver/AudioInput/AudioInput.c
parent7ef58eef7a57c46ab53ed8a26805b58dcffd7010 (diff)
downloadqmk_firmware-6c38ca28907034aa9a5f294dc26f98d90234dea8.tar.gz
qmk_firmware-6c38ca28907034aa9a5f294dc26f98d90234dea8.zip
Fixed Endpoint_Write_Control_Stream_* functions not sending a terminating IN when the given data length is zero.
Diffstat (limited to 'Demos/Device/ClassDriver/AudioInput/AudioInput.c')
-rw-r--r--Demos/Device/ClassDriver/AudioInput/AudioInput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Device/ClassDriver/AudioInput/AudioInput.c b/Demos/Device/ClassDriver/AudioInput/AudioInput.c
index cf9d3b47e5..9bd5fe4022 100644
--- a/Demos/Device/ClassDriver/AudioInput/AudioInput.c
+++ b/Demos/Device/ClassDriver/AudioInput/AudioInput.c
@@ -102,10 +102,10 @@ void ProcessNextSample(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
Audio_Device_WriteSample16(&Microphone_Audio_Interface, AudioSample);
}