1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 03:49:52 +03:00

Companion import / export issue for switches from X9D+ 2019

This commit is contained in:
Bertrand Songis 2019-08-29 17:11:53 +02:00
parent 52624710cd
commit a5d62805c3
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
3 changed files with 9 additions and 5 deletions

View file

@ -293,7 +293,7 @@ char * getSwitchPositionName(char * dest, swsrc_t idx)
}
#else
#define IDX_TRIMS_IN_STR_VSWITCHES (1)
#define IDX_ON_IN_STR_VSWITCHES (IDX_TRIMS_IN_STR_VSWITCHES+SWSRC_LAST_TRIM-SWSRC_FIRST_TRIM+1)
#define IDX_ON_IN_STR_VSWITCHES (IDX_TRIMS_IN_STR_VSWITCHES + SWSRC_LAST_TRIM - SWSRC_FIRST_TRIM + 1)
if (idx <= SWSRC_LAST_SWITCH) {
div_t swinfo = switchInfo(idx);
s = getSwitchName(s, idx);