Module compartment trainer input currently unavailable on Horus
This commit is contained in:
@@ -161,6 +161,10 @@ ModulePanel::ModulePanel(QWidget * parent, ModelData & model, ModuleData & modul
|
|||||||
QString label;
|
QString label;
|
||||||
if (moduleIdx < 0) {
|
if (moduleIdx < 0) {
|
||||||
label = tr("Trainer Port");
|
label = tr("Trainer Port");
|
||||||
|
if (IS_HORUS(firmware->getBoard())) {
|
||||||
|
ui->trainerMode->setItemData(TRAINER_MODE_MASTER_CPPM_EXTERNAL_MODULE, 0, Qt::UserRole - 1);
|
||||||
|
ui->trainerMode->setItemData(TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE, 0, Qt::UserRole - 1);
|
||||||
|
}
|
||||||
if (generalSettings.hw_uartMode != UART_MODE_SBUS_TRAINER) {
|
if (generalSettings.hw_uartMode != UART_MODE_SBUS_TRAINER) {
|
||||||
ui->trainerMode->setItemData(TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, 0, Qt::UserRole - 1);
|
ui->trainerMode->setItemData(TRAINER_MODE_MASTER_BATTERY_COMPARTMENT, 0, Qt::UserRole - 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user