Companion support for Taranis internal PPM, remove disabled DJT choice for stock board
This commit is contained in:
@@ -829,6 +829,8 @@ int OpenTxFirmware::isAvailable(PulsesProtocol proto, int port)
|
|||||||
case PULSES_PXX_XJT_D8:
|
case PULSES_PXX_XJT_D8:
|
||||||
case PULSES_PXX_XJT_LR12:
|
case PULSES_PXX_XJT_LR12:
|
||||||
return 1;
|
return 1;
|
||||||
|
case PULSES_PPM:
|
||||||
|
return id.contains("internalppm") ? 1 : 0;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -895,7 +897,7 @@ int OpenTxFirmware::isAvailable(PulsesProtocol proto, int port)
|
|||||||
case PULSES_DSMX:
|
case PULSES_DSMX:
|
||||||
case PULSES_LP45:
|
case PULSES_LP45:
|
||||||
case PULSES_DSM2:
|
case PULSES_DSM2:
|
||||||
case PULSES_PXX_DJT:
|
// case PULSES_PXX_DJT: // Unavailable for now
|
||||||
case PULSES_PPM16:
|
case PULSES_PPM16:
|
||||||
case PULSES_PPMSIM:
|
case PULSES_PPMSIM:
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ ModulePanel::ModulePanel(QWidget *parent, ModelData & model, ModuleData & module
|
|||||||
|
|
||||||
// The protocols available on this board
|
// The protocols available on this board
|
||||||
for (int i=0; i<PULSES_PROTOCOL_LAST; i++) {
|
for (int i=0; i<PULSES_PROTOCOL_LAST; i++) {
|
||||||
if (GetEepromInterface()->isAvailable((PulsesProtocol)i, moduleIdx)) {
|
if (firmware->isAvailable((PulsesProtocol)i, moduleIdx)) {
|
||||||
ui->protocol->addItem(ModelPrinter::printModuleProtocol(i), (QVariant)i);
|
ui->protocol->addItem(ModelPrinter::printModuleProtocol(i), (QVariant)i);
|
||||||
if (i == module.protocol) ui->protocol->setCurrentIndex(ui->protocol->count()-1);
|
if (i == module.protocol) ui->protocol->setCurrentIndex(ui->protocol->count()-1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user