From 6f95a22ce25839825c79d4529317984bd3e1b870 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 12 Jun 2016 16:29:44 +0200 Subject: Improve supply voltage measurement, WIP --- src/glutt-o-logique/analog_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glutt-o-logique/analog_input.c') diff --git a/src/glutt-o-logique/analog_input.c b/src/glutt-o-logique/analog_input.c index abf37dc..8b65cf8 100644 --- a/src/glutt-o-logique/analog_input.c +++ b/src/glutt-o-logique/analog_input.c @@ -53,7 +53,7 @@ void analog_init(void) ADC_InitTypeDef ADC_InitStruct; ADC_InitStruct.ADC_Resolution = ADC_Resolution_12b; ADC_InitStruct.ADC_ScanConvMode = DISABLE; - ADC_InitStruct.ADC_ContinuousConvMode = DISABLE; + ADC_InitStruct.ADC_ContinuousConvMode = ENABLE; ADC_InitStruct.ADC_ExternalTrigConvEdge = ADC_ExternalTrigConvEdge_None; ADC_InitStruct.ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1; ADC_InitStruct.ADC_DataAlign = ADC_DataAlign_Right; -- cgit v1.2.3