aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_stm32_adc_f1.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine/machine_stm32_adc_f1.go')
-rw-r--r--src/machine/machine_stm32_adc_f1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine_stm32_adc_f1.go b/src/machine/machine_stm32_adc_f1.go
index fb0cee669..e2c82f623 100644
--- a/src/machine/machine_stm32_adc_f1.go
+++ b/src/machine/machine_stm32_adc_f1.go
@@ -75,7 +75,7 @@ func (a ADC) Get() uint16 {
stm32.ADC1.SR.ClearBits(stm32.ADC_SR_EOC)
// clear rank
- stm32.ADC1.SMPR1.ClearBits(ch)
+ stm32.ADC1.SQR3.ClearBits(ch)
return result
}