summaryrefslogtreecommitdiffstats
path: root/app/adc.c
diff options
context:
space:
mode:
authorroot <root@ka-ata-killa.ourano.james.local>2021-03-06 18:19:33 +0000
committerroot <root@ka-ata-killa.ourano.james.local>2021-03-06 18:23:04 +0000
commit03486e52a2dde8ade759f36fea8b403b6524451c (patch)
treedc54d6ff9797340d83e159b596fd80cc1f2826c6 /app/adc.c
parentf519bbe55f6917d86af6bb4946dfef073175d8f3 (diff)
downloadclock-03486e52a2dde8ade759f36fea8b403b6524451c.tar.gz
clock-03486e52a2dde8ade759f36fea8b403b6524451c.tar.bz2
clock-03486e52a2dde8ade759f36fea8b403b6524451c.zip
pull a new libopencm3 in the hope it fixes tim's usb problems
Diffstat (limited to 'app/adc.c')
-rw-r--r--app/adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/adc.c b/app/adc.c
index 821bac9..8825c71 100644
--- a/app/adc.c
+++ b/app/adc.c
@@ -69,7 +69,7 @@ void adc_dispatch (void)
ago = now - adc_stamp;
if (ago > ADC_TIMEOUT) {
- adc_off (ADC1);
+ adc_power_off (ADC1);
adc_power_on (ADC1);
state = WAIT_VREF;
start_conversion (VREF_CHANNEL);
@@ -116,7 +116,7 @@ void adc_init (void)
MAP_ANALOG_INPUT (POT);
- adc_off (ADC1);
+ adc_power_off (ADC1);
adc_disable_scan_mode (ADC1);
adc_enable_temperature_sensor();