1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 20:10:08 +03:00

128 bytes RAM saved

This commit is contained in:
Bertrand Songis 2019-09-13 08:21:35 +02:00
parent 5dd2330128
commit 2bc42d9ecb
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
9 changed files with 57 additions and 61 deletions

View file

@ -865,16 +865,15 @@ void copySticksToOffset(uint8_t ch);
void moveTrimsToOffsets();
typedef uint16_t ACTIVE_PHASES_TYPE;
#define DELAY_POS_SHIFT 0
#define DELAY_POS_MARGIN 3
typedef int16_t delayval_t;
PACK(typedef struct {
uint16_t delay;
PACK(struct SwOn {
uint16_t delay:14; // max = 2550
uint8_t activeMix:1;
uint8_t activeExpo:1;
int16_t now; // timer trigger source -> off, abs, stk, stk%, sw/!sw, !m_sw/!m_sw
int16_t prev;
uint8_t activeMix;
uint8_t activeExpo;
}) SwOn;
});
extern SwOn swOn[MAX_MIXERS];
extern int32_t act[MAX_MIXERS];