ADC crosstalk fixed, new crosstalk and time measurements (for Horus)

This commit is contained in:
Damjan Adamic
2016-04-10 22:06:53 +02:00
parent 1e3da34ec8
commit 9e0e71ad92
4 changed files with 26 additions and 27 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ uint16_t getAnalogValue(uint8_t index)
index = ana_mapping[index];
#endif
if (ana_direction[index] < 0)
return 4096 - adcValues[index];
return 4095 - adcValues[index];
else
return adcValues[index];
}