Fixes datacopy target (#7619)
- removed GCC includes from parameters (causes duplicated typedef btw. GCC & clang otherwise). - make "frskyInstance" NOBACKUP (only 1 member can be backed up per union).
This commit is contained in:
@@ -329,10 +329,10 @@ PACK(struct TelemetrySensor {
|
||||
NOBACKUP(uint16_t persistentValue);
|
||||
};
|
||||
union {
|
||||
PACK(struct {
|
||||
NOBACKUP(PACK(struct {
|
||||
uint8_t physID:5;
|
||||
uint8_t rxIndex:3; // 1 bit for module index, 2 bits for receiver index
|
||||
}) frskyInstance;
|
||||
}) frskyInstance);
|
||||
uint8_t instance;
|
||||
NOBACKUP(uint8_t formula);
|
||||
};
|
||||
@@ -941,4 +941,4 @@ static inline void check_struct()
|
||||
|
||||
#undef CHKSIZE
|
||||
}
|
||||
#endif /* BACKUP */
|
||||
#endif /* BACKUP */
|
||||
|
||||
Reference in New Issue
Block a user