mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
[X10] Conversion fix
This commit is contained in:
parent
9296d0c83b
commit
e5c0b9c4ea
2 changed files with 8 additions and 2 deletions
|
@ -532,10 +532,16 @@ PACK(struct ModelData_v218 {
|
|||
#define THEME_DATA
|
||||
#endif
|
||||
|
||||
#if defined(PCBHORUS)
|
||||
#define NUM_CALIBRATION_INPUTS 13
|
||||
#else
|
||||
#define NUM_CALIBRATION_INPUTS (NUM_STICKS+STORAGE_NUM_POTS+STORAGE_NUM_SLIDERS)
|
||||
#endif
|
||||
|
||||
PACK(struct RadioData_v218 {
|
||||
uint8_t version;
|
||||
uint16_t variant;
|
||||
CalibData calib[NUM_STICKS+STORAGE_NUM_POTS+STORAGE_NUM_SLIDERS+STORAGE_NUM_MOUSE_ANALOGS];
|
||||
CalibData calib[NUM_CALIBRATION_INPUTS];
|
||||
uint16_t chkSum;
|
||||
N_HORUS_FIELD(int8_t currModel);
|
||||
N_HORUS_FIELD(uint8_t contrast);
|
||||
|
|
|
@ -102,7 +102,7 @@ TEST(X10Conversions, ConversionRadioFrom22)
|
|||
simuFatfsSetPaths(TESTS_PATH "/tests/", TESTS_PATH "/tests/");
|
||||
loadRadioSettings("/radio_22_x10.bin");
|
||||
|
||||
EXPECT_EQ(218, g_eeGeneral.version);
|
||||
EXPECT_EQ(219, g_eeGeneral.version);
|
||||
EXPECT_STRNEQ("en", g_eeGeneral.ttsLanguage);
|
||||
EXPECT_STRNEQ("model1.bin", g_eeGeneral.currModelFilename);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue