aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-28 16:27:40 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-28 16:27:40 -0400
commitd08e6b10ff96022957720f929aec8d46cbcd375d (patch)
tree3e7d533d735b1961405c267f1386adff71d01a4f /libmaple
parent9d9adb6254098a66412a8eee85b1f2f27678e68e (diff)
downloadlibrambutan-d08e6b10ff96022957720f929aec8d46cbcd375d.tar.gz
librambutan-d08e6b10ff96022957720f929aec8d46cbcd375d.zip
Cosmetics.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/adc.c b/libmaple/adc.c
index acce923..e108332 100644
--- a/libmaple/adc.c
+++ b/libmaple/adc.c
@@ -101,7 +101,7 @@ uint16 adc_read(const adc_dev *dev, uint8 channel) {
regs->SQR3 = channel;
regs->CR2 |= ADC_CR2_SWSTART;
- while(!(regs->SR & ADC_SR_EOC))
+ while (!(regs->SR & ADC_SR_EOC))
;
return (uint16)(regs->DR & ADC_DR_DATA);