Skip to content

Commit

Permalink
GUI: En/Dis Uart Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
dlktdr committed Apr 9, 2024
1 parent ac76e8a commit 7aacfe8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions gui/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,7 @@ void MainWindow::featuresReceiveComplete()
ui->tabBT->setEnabled(false);
ui->tabPWM->setEnabled(false);
ui->tabAnaAux->setEnabled(false);
ui->tabUart->setEnabled(false);

// Show only the features the board has
if(features.contains("IMU")) {
Expand Down Expand Up @@ -1306,6 +1307,12 @@ void MainWindow::featuresReceiveComplete()
features.contains("AN4CH")) {
ui->tabAnaAux->setEnabled(true); // FixMe, Aux Shouldn't be hidden
}
if(features.contains("AUXSERIAL")) {
ui->tabUart->setEnabled(true);
if(features.contains("AUXINVERT")) {
// TODO
}
}
resize(100,100);
}

Expand Down
2 changes: 1 addition & 1 deletion gui/src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tabExtras">
<widget class="QWidget" name="tabUart">
<attribute name="title">
<string>UART</string>
</attribute>
Expand Down

0 comments on commit 7aacfe8

Please sign in to comment.