aboutsummaryrefslogtreecommitdiffstats
path: root/src/glutt-o-logique/analog_input.c
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-12 16:29:44 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-12 16:29:44 +0200
commit6f95a22ce25839825c79d4529317984bd3e1b870 (patch)
tree181f6d072a4d9d3c184becd104c447eca189230d /src/glutt-o-logique/analog_input.c
parent2823a0d3833ba5faa03590dfbc5c45976439cd59 (diff)
downloadglutte-o-matic-6f95a22ce25839825c79d4529317984bd3e1b870.tar.gz
glutte-o-matic-6f95a22ce25839825c79d4529317984bd3e1b870.tar.bz2
glutte-o-matic-6f95a22ce25839825c79d4529317984bd3e1b870.zip
Improve supply voltage measurement, WIP
Diffstat (limited to 'src/glutt-o-logique/analog_input.c')
-rw-r--r--src/glutt-o-logique/analog_input.c2
1 files changed, 1 insertions, 1 deletions
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;