[Companion] Old EEPROM support removed
This commit is contained in:
@@ -628,13 +628,13 @@ void populateTelemetrySourcesComboBox(AutoComboBox * cb, const ModelData * model
|
||||
{
|
||||
cb->clear();
|
||||
if (negative) {
|
||||
for (int i=-C9X_MAX_SENSORS; i<0; ++i) {
|
||||
for (int i=-CPN_MAX_SENSORS; i<0; ++i) {
|
||||
if (model->sensorData[-i-1].isAvailable())
|
||||
cb->addItem(QObject::tr("-%1").arg(model->sensorData[-i-1].label), i);
|
||||
}
|
||||
}
|
||||
cb->addItem("---", 0);
|
||||
for (int i=1; i<=C9X_MAX_SENSORS; ++i) {
|
||||
for (int i=1; i<=CPN_MAX_SENSORS; ++i) {
|
||||
if (model->sensorData[i-1].isAvailable())
|
||||
cb->addItem(model->sensorData[i-1].label, i);
|
||||
}
|
||||
@@ -720,7 +720,7 @@ TelemetryPanel::TelemetryPanel(QWidget *parent, ModelData & model, GeneralSettin
|
||||
if (IS_ARM(firmware->getBoard())) {
|
||||
ui->A1GB->hide();
|
||||
ui->A2GB->hide();
|
||||
for (int i=0; i<C9X_MAX_SENSORS; ++i) {
|
||||
for (int i=0; i<CPN_MAX_SENSORS; ++i) {
|
||||
TelemetrySensorPanel * panel = new TelemetrySensorPanel(this, model.sensorData[i], model, generalSettings, firmware);
|
||||
ui->sensorsLayout->addWidget(panel);
|
||||
sensorPanels[i] = panel;
|
||||
@@ -782,7 +782,7 @@ void TelemetryPanel::update()
|
||||
}
|
||||
|
||||
if (IS_ARM(firmware->getBoard())) {
|
||||
for (int i=0; i<C9X_MAX_SENSORS; ++i) {
|
||||
for (int i=0; i<CPN_MAX_SENSORS; ++i) {
|
||||
sensorPanels[i]->update();
|
||||
}
|
||||
for (int i=0; i<firmware->getCapability(TelemetryCustomScreens); i++) {
|
||||
@@ -827,7 +827,7 @@ void TelemetryPanel::setup()
|
||||
}
|
||||
|
||||
/*if (IS_ARM(firmware->getBoard())) {
|
||||
for (int i=0; i<C9X_MAX_SENSORS; ++i) {
|
||||
for (int i=0; i<CPN_MAX_SENSORS; ++i) {
|
||||
TelemetrySensorPanel * panel = new TelemetrySensorPanel(this, model->, model, generalSettings, firmware);
|
||||
ui->sensorsLayout->addWidget(panel);
|
||||
sensorPanels[i] = panel;
|
||||
|
||||
Reference in New Issue
Block a user