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:
parent
5dd2330128
commit
2bc42d9ecb
9 changed files with 57 additions and 61 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue