GVAR names not available for 9x in companion (Fix #2150)
This commit is contained in:
@@ -551,7 +551,7 @@ int OpenTxFirmware::getCapability(const Capability capability)
|
|||||||
case FlightModesName:
|
case FlightModesName:
|
||||||
return (IS_TARANIS(board) ? 10 : 6);
|
return (IS_TARANIS(board) ? 10 : 6);
|
||||||
case GvarsName:
|
case GvarsName:
|
||||||
return 6;
|
return (IS_9X(board) ? 0 : 6);
|
||||||
case HasChNames:
|
case HasChNames:
|
||||||
return (IS_TARANIS(board) ? 1 : 0);
|
return (IS_TARANIS(board) ? 1 : 0);
|
||||||
case GvarsInCS:
|
case GvarsInCS:
|
||||||
|
|||||||
@@ -209,7 +209,9 @@ void FlightModePanel::update()
|
|||||||
|
|
||||||
if (ui->gvGB->isVisible()) {
|
if (ui->gvGB->isVisible()) {
|
||||||
for (int i=0; i<gvCount; i++) {
|
for (int i=0; i<gvCount; i++) {
|
||||||
gvNames[i]->setText(model->gvars_names[i]);
|
if (firmware->getCapability(GvarsName) > 0) {
|
||||||
|
gvNames[i]->setText(model->gvars_names[i]);
|
||||||
|
}
|
||||||
gvValues[i]->setDisabled(model->isGVarLinked(phaseIdx, i));
|
gvValues[i]->setDisabled(model->isGVarLinked(phaseIdx, i));
|
||||||
gvValues[i]->setValue(model->getGVarValue(phaseIdx, i));
|
gvValues[i]->setValue(model->getGVarValue(phaseIdx, i));
|
||||||
if (IS_TARANIS(GetEepromInterface()->getBoard()) && phaseIdx == 0) {
|
if (IS_TARANIS(GetEepromInterface()->getBoard()) && phaseIdx == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user