[Horus] Switch selection fixes

This commit is contained in:
Andre Bernet
2016-04-16 16:40:05 +04:00
parent e33e83f2b5
commit 296d207cfa
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -335,7 +335,7 @@ char * getSwitchString(char * dest, swsrc_t idx)
getStringWithIndex(s, "L", idx-SWSRC_FIRST_LOGICAL_SWITCH+1);
}
else if (idx <= SWSRC_ONE) {
getStringAtIndex(s, STR_VSWITCHES, idx-SWSRC_ON+1+(2*NUM_STICKS));
getStringAtIndex(s, STR_VSWITCHES, idx-SWSRC_ON+2+(SWSRC_LAST_TRIM-SWSRC_FIRST_TRIM));
}
else if (idx <= SWSRC_LAST_FLIGHT_MODE) {
getStringWithIndex(s, STR_FP, idx-SWSRC_FIRST_FLIGHT_MODE);