1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-21 07:15:12 +03:00

Many little differences in logical switches (telemetry sources) between

Companion and the FW (especially on 9x stock board)
This commit is contained in:
bsongis 2014-04-10 12:35:36 +02:00
parent c19dea8472
commit ed3bc66ea1
18 changed files with 73 additions and 50 deletions

View file

@ -667,11 +667,11 @@ void populateCSWCB(QComboBox *b, int value)
b->clear();
for (int i=0; i<LS_FN_MAX; i++) {
int func = order[i];
if (!IS_ARM(GetEepromInterface()->getBoard())) {
if (func == LS_FN_VEQUAL || func == LS_FN_STAY)
continue;
}
b->addItem(LogicalSwitchData(func).funcToString(), func);
// if (i>GetEepromInterface()->getCapability(CSFunc)) {
// QModelIndex index = b->model()->index(i, 0);
// QVariant v(0);
// }
if (value == func) {
b->setCurrentIndex(b->count()-1);
}