Move new field to the end to avoid eeprom corruption for existing users.

This commit is contained in:
Hydra
2021-05-20 23:24:04 +02:00
committed by Raphael Coeffic
parent 2f27c3c1a6
commit d5895f6025
+2 -1
View File
@@ -821,7 +821,6 @@ PACK(struct RadioData {
NOBACKUP(int8_t varioPitch);
NOBACKUP(int8_t varioRange);
NOBACKUP(int8_t varioRepeat);
NOBACKUP(int8_t uartSampleMode:2); // See UartSampleModes
CustomFunctionData customFn[MAX_SPECIAL_FUNCTIONS];
EXTRA_GENERAL_FIELDS
@@ -831,6 +830,8 @@ PACK(struct RadioData {
char ownerRegistrationID[PXX2_LEN_REGISTRATION_ID];
GYRO_FIELDS
NOBACKUP(int8_t uartSampleMode:2); // See UartSampleModes
});
#undef SWITCHES_WARNING_DATA