Dead code removed

This commit is contained in:
bsongis
2014-07-23 16:31:20 +02:00
parent 13e0b21656
commit fd84c62ff4
2 changed files with 2 additions and 5 deletions
+2 -3
View File
@@ -126,10 +126,9 @@ void adcRead()
#if !defined(REV3)
// adc direction correct
for (i=0; i<NUMBER_ANALOG; i++) {
if (ana_direction[i] == -1)
if (ana_direction[i] < 0) {
Analog_values[i] = 4096-Analog_values[i];
else if (ana_direction[i] == 0)
Analog_values[i] = 0;
}
}
#endif
}