Fix shift in sources on X9DP pre-2019 and X-Lite and hardware page (fix #6860 fix#6856)

* Fix shift in sources on X9DP pre-2019

* Probably better fix, but needs to be carried to Xlite if approved

* Fix Xlite strings

* Forgot to update conversions too
This commit is contained in:
Andre Bernet
2019-10-01 09:49:34 +02:00
committed by GitHub
parent 4f614850c4
commit e74f14cc48
5 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -690,7 +690,7 @@ PACK(struct TrainerData {
swarnstate_t switchUnlockStates; \
swconfig_t switchConfig; \
char switchNames[STORAGE_NUM_SWITCHES][LEN_SWITCH_NAME]; \
char anaNames[NUM_STICKS+NUM_POTS+NUM_SLIDERS][LEN_ANA_NAME]; \
char anaNames[NUM_STICKS+STORAGE_NUM_POTS+STORAGE_NUM_SLIDERS][LEN_ANA_NAME]; \
BLUETOOTH_FIELDS
#elif defined(PCBSKY9X)
#define EXTRA_GENERAL_FIELDS \
@@ -703,7 +703,7 @@ PACK(struct TrainerData {
uint8_t sticksGain; \
uint8_t rotarySteps; \
char switchNames[STORAGE_NUM_SWITCHES][LEN_SWITCH_NAME]; \
char anaNames[NUM_STICKS+NUM_POTS+NUM_SLIDERS][LEN_ANA_NAME];
char anaNames[NUM_STICKS+STORAGE_NUM_POTS+STORAGE_NUM_SLIDERS][LEN_ANA_NAME];
#else
#define EXTRA_GENERAL_FIELDS
#endif