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
This commit is contained in:
parent
075229952e
commit
55cf5bcd76
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue