mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue