mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 17:55:19 +03:00
Fixes #1026 (VC++ compiler only). Would someone check that this fix
doesn't increase flash usage on 9x stock? Thanks!
This commit is contained in:
parent
168ec19ef4
commit
d2c42c780f
1 changed files with 14 additions and 15 deletions
|
@ -906,23 +906,22 @@ PACK(typedef struct t_CustomFnData { // Function Switches data
|
||||||
#else
|
#else
|
||||||
PACK(typedef struct t_CustomFnData {
|
PACK(typedef struct t_CustomFnData {
|
||||||
PACK(union {
|
PACK(union {
|
||||||
struct {
|
PACK(struct {
|
||||||
int8_t swtch:6;
|
int16_t swtch:6;
|
||||||
uint16_t func:4;
|
uint16_t func:4;
|
||||||
uint8_t mode:2;
|
uint16_t mode:2;
|
||||||
uint8_t param:3;
|
uint16_t param:3;
|
||||||
uint8_t active:1;
|
uint16_t active:1;
|
||||||
} gvar;
|
}) gvar;
|
||||||
|
|
||||||
struct {
|
PACK(struct {
|
||||||
int8_t swtch:6;
|
int16_t swtch:6;
|
||||||
uint16_t func:4;
|
uint16_t func:4;
|
||||||
uint8_t param:4;
|
uint16_t param:4;
|
||||||
uint8_t spare:1;
|
uint16_t spare:1;
|
||||||
uint8_t active:1;
|
uint16_t active:1;
|
||||||
} all;
|
}) all;
|
||||||
});
|
});
|
||||||
|
|
||||||
uint8_t value;
|
uint8_t value;
|
||||||
}) CustomFnData;
|
}) CustomFnData;
|
||||||
#define CFN_SWITCH(p) ((p)->all.swtch)
|
#define CFN_SWITCH(p) ((p)->all.swtch)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue