Serial port mode added to companion

This commit is contained in:
Andre Bernet
2014-03-23 00:32:30 +01:00
parent c3d4989afa
commit ba6ebc82bc
3 changed files with 44 additions and 0 deletions
+14
View File
@@ -380,6 +380,14 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) :
ui->pot3Type->hide();
ui->pot3TypeLabel->hide();
}
if (IS_TARANIS(eepromInterface->getBoard())) {
ui->serialPortMode->setCurrentIndex(g_eeGeneral.hw_uartMode);
}
else {
ui->serialPortMode->hide();
ui->serialPortLabel->hide();
}
}
GeneralEdit::~GeneralEdit()
@@ -405,6 +413,12 @@ void GeneralEdit::on_pot3Type_currentIndexChanged(int index)
updateSettings();
}
void GeneralEdit::on_serialPortMode_currentIndexChanged(int index)
{
g_eeGeneral.hw_uartMode = index;
updateSettings();
}
void GeneralEdit::unlockSwitchEdited()
{
int i=0;