Skip to content

Commit

Permalink
No topbar on horus
Browse files Browse the repository at this point in the history
  • Loading branch information
kilrah committed Oct 18, 2018
1 parent d128496 commit 6b6b8ba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions companion/src/modeledit/telemetry.cpp
Expand Up @@ -828,6 +828,8 @@ TelemetryPanel::TelemetryPanel(QWidget *parent, ModelData & model, GeneralSettin
}

if (IS_ARM(firmware->getBoard())) {
ui->varioSource->setField(model.frsky.varioSource, this);
ui->varioCenterSilent->setField(model.frsky.varioCenterSilent, this);
ui->A1GB->hide();
ui->A2GB->hide();
for (int i=0; i<CPN_MAX_SENSORS; ++i) {
Expand All @@ -840,19 +842,18 @@ TelemetryPanel::TelemetryPanel(QWidget *parent, ModelData & model, GeneralSettin
}
else {
ui->sensorsGB->hide();
ui->altimetryGB->hide();
analogs[0] = new TelemetryAnalog(this, model.frsky.channels[0], model, generalSettings, firmware);
ui->A1Layout->addWidget(analogs[0]);
connect(analogs[0], SIGNAL(modified()), this, SLOT(onAnalogModified()));
analogs[1] = new TelemetryAnalog(this, model.frsky.channels[1], model, generalSettings, firmware);
ui->A2Layout->addWidget(analogs[1]);
connect(analogs[1], SIGNAL(modified()), this, SLOT(onModified()));
}

if (IS_HORUS_OR_TARANIS(firmware->getBoard())) {
if (IS_TARANIS_X9(firmware->getBoard())) {
ui->voltsSource->setField(model.frsky.voltsSource, this);
ui->altitudeSource->setField(model.frsky.altitudeSource, this);
ui->varioSource->setField(model.frsky.varioSource, this);
ui->varioCenterSilent->setField(model.frsky.varioCenterSilent, this);
}
else {
ui->topbarGB->hide();
Expand Down

0 comments on commit 6b6b8ba

Please sign in to comment.