1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

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

View file

@ -1405,8 +1405,6 @@ uint16_t BandGap ;
uint16_t anaIn(uint8_t chan) uint16_t anaIn(uint8_t chan)
{ {
#if defined(PCBTARANIS) #if defined(PCBTARANIS)
// crossAna[]={LH,LV,RH,RV,S1,S2,LS,RS,BAT
// s_anaFilt[]={LH,LV,RH,RV,S1,S2,LS,RS,_BAT
return s_anaFilt[chan]; return s_anaFilt[chan];
#elif defined(PCBSKY9X) && !defined(REVA) #elif defined(PCBSKY9X) && !defined(REVA)
static const uint8_t crossAna[]={1,5,7,0,4,6,2,3}; static const uint8_t crossAna[]={1,5,7,0,4,6,2,3};

View file

@ -126,10 +126,9 @@ void adcRead()
#if !defined(REV3) #if !defined(REV3)
// adc direction correct // adc direction correct
for (i=0; i<NUMBER_ANALOG; i++) { for (i=0; i<NUMBER_ANALOG; i++) {
if (ana_direction[i] == -1) if (ana_direction[i] < 0) {
Analog_values[i] = 4096-Analog_values[i]; Analog_values[i] = 4096-Analog_values[i];
else if (ana_direction[i] == 0) }
Analog_values[i] = 0;
} }
#endif #endif
} }