X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/dc68de15b69c2064b1b14d00659aa91054cccbe1..cf22a744ec0da3b68c4ffdb14c6fa43f2e07542f:/Demos/Device/LowLevel/AudioInput/AudioInput.c diff --git a/Demos/Device/LowLevel/AudioInput/AudioInput.c b/Demos/Device/LowLevel/AudioInput/AudioInput.c index 572e307b0..a61ff593c 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);