mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Dead code removed
This commit is contained in:
parent
13e0b21656
commit
fd84c62ff4
2 changed files with 2 additions and 5 deletions
|
@ -1405,8 +1405,6 @@ uint16_t BandGap ;
|
|||
uint16_t anaIn(uint8_t chan)
|
||||
{
|
||||
#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];
|
||||
#elif defined(PCBSKY9X) && !defined(REVA)
|
||||
static const uint8_t crossAna[]={1,5,7,0,4,6,2,3};
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue