Merge pull request #8141 from opentx/dgatf/thr_trim_typo
Fix thr trim strings (companion)
This commit is contained in:
@@ -1375,9 +1375,15 @@ void SetupPanel::populateThrottleTrimSwitchCB()
|
||||
lock = true;
|
||||
ui->throttleTrimSwitch->clear();
|
||||
int idx=0;
|
||||
QString trim;
|
||||
for (int i=0; i<getBoardCapability(board, Board::NumTrims); i++, idx++) {
|
||||
QString trim = RawSource(SOURCE_TYPE_TRIM, i).toString(model, &generalSettings);
|
||||
trim = (trim == "TrmR") ? "TrmT" : (trim == "TmrT") ? "TmrR" : trim;
|
||||
// here order is TERA instead of RETA
|
||||
if (i == 0)
|
||||
trim = RawSource(SOURCE_TYPE_TRIM, 2).toString(model, &generalSettings);
|
||||
else if (i == 2)
|
||||
trim = RawSource(SOURCE_TYPE_TRIM, 0).toString(model, &generalSettings);
|
||||
else
|
||||
trim = RawSource(SOURCE_TYPE_TRIM, i).toString(model, &generalSettings);
|
||||
ui->throttleTrimSwitch->addItem(trim, idx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user