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:
Raphael Coeffic
2020-05-22 19:36:45 +02:00
committed by GitHub
parent 273b0ae81d
commit a778aea8fb
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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 */