aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);