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
+7 -2
View File
@@ -2820,8 +2820,13 @@ uint16_t anaIn(uint8_t chan)
return *p;
#else
static const pm_char crossAna[] PROGMEM = {3,1,2,0,4,5,6,7};
volatile uint16_t *p = &s_anaFilt[pgm_read_byte(crossAna+chan)];
return *p;
uint16_t temp = s_anaFilt[pgm_read_byte(crossAna+chan)];
#if defined(FRSKY_STICKS)
if (chan < NUM_STICKS && (g_eeGeneral.stickReverse & (1 << chan))) {
temp = 2048 - temp;
}
#endif
return temp;
#endif
}