From 55cf5bcd76af3d8137ee0d34ff4507c122540daa Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 9 Sep 2016 21:11:46 +0000 Subject: adc-power: Calling adc_power_off twice should be safe but, it's not on f3 at present. See https://github.com/libopencm3/libopencm3/issues/654 and https://github.com/libopencm3/libopencm3/pull/662 --- tests/adc-power/adc-power.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/adc-power/adc-power.c b/tests/adc-power/adc-power.c index 9b6df07..4ab5e23 100644 --- a/tests/adc-power/adc-power.c +++ b/tests/adc-power/adc-power.c @@ -164,6 +164,8 @@ void adc_power_task_down() { TIM_CNT(TIMER) = 0; adc_power_off(ADC1); + /* double power off should be safe */ + adc_power_off(ADC1); unsigned int td = TIM_CNT(TIMER); printf("toff in: %u\n", td); } -- cgit