From f79f9abd28040d839b02ea22cdfde3d0a34f3482 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 24 Mar 2010 05:50:09 +0000 Subject: 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. --- Demos/Device/LowLevel/AudioInput/AudioInput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demos/Device/LowLevel/AudioInput/AudioInput.c') diff --git a/Demos/Device/LowLevel/AudioInput/AudioInput.c b/Demos/Device/LowLevel/AudioInput/AudioInput.c index 2d718e53c..392609b07 100644 --- a/Demos/Device/LowLevel/AudioInput/AudioInput.c +++ b/Demos/Device/LowLevel/AudioInput/AudioInput.c @@ -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 */ -- cgit v1.2.3