[X7D] DMA write on adcValues overflow over rotary encoder value (rotary encoder was always moving)

This commit is contained in:
Bertrand Songis
2016-10-20 18:53:32 +02:00
parent 774bd48b47
commit 2b1c8ee783
+2 -2
View File
@@ -40,14 +40,14 @@
#if defined(PCBX9E)
#define NUMBER_ANALOG_ADC1 10
#define NUMBER_ANALOG_ADC3 3
#define NUMBER_ANALOG_ADC3 (NUMBER_ANALOG - 10)
// mapping from adcValues order to enum Analogs
const uint8_t ana_mapping[NUMBER_ANALOG] = { 0 /*STICK1*/, 1 /*STICK2*/, 2 /*STICK3*/, 3 /*STICK4*/,
10 /*POT1*/, 4 /*POT2*/, 5 /*POT3*/, 6 /*POT4*/,
11 /*SLIDER1*/, 12 /*SLIDER2*/, 7 /*SLIDER3*/, 8 /*SLIDER4*/,
9 /*TX_VOLTAGE*/ };
#else
#define NUMBER_ANALOG_ADC1 10
#define NUMBER_ANALOG_ADC1 NUMBER_ANALOG
#endif
uint16_t adcValues[NUMBER_ANALOG] __DMA;