Issue #660 - Firmware part done. I need to check the ASM because when

compiled with the FRSKY_STICKS option enabled, the FW is lighter than
without the option!
This commit is contained in:
bsongis
2014-04-16 20:04:31 +02:00
parent 3829604480
commit b805b147f3
8 changed files with 63 additions and 16 deletions
+3 -3
View File
@@ -38,7 +38,7 @@
volatile uint16_t Analog_values[NUMBER_ANALOG];
#if defined(TARANIS_STICKS)
#if defined(FRSKY_STICKS)
const char ana_direction[NUMBER_ANALOG] = {1, 1, 0, 1 ,0 ,1 ,0, 0, 0};
#endif
@@ -118,12 +118,12 @@ void adcRead()
}
// adc direction correct
#if defined(TARANIS_STICKS)
#if defined(FRSKY_STICKS)
uint32_t i ;
for (i=0; i<NUMBER_ANALOG; i++) {
if (ana_direction[i]) {
Analog_values[i] = 4096-Analog_values[i];
}
}
#endif
#endif
}