USB-VCP no OFF if internal RF module is set to CRSF (#1957)
* Do not list OFF on VCP menu if internal RF module is set to CRSF to allow pass-through flashing. Set USB-VCP automatically to CLI when CRSF mode is selected for internal module and it was previously OFF. Activate CLI when iCRSF is selected. * Companion part Co-authored-by: elecpower <neilh713@tpg.com.au>
This commit is contained in:
@@ -49,6 +49,7 @@ class HardwarePanel : public GeneralPanel
|
||||
AutoComboBox *internalModule;
|
||||
unsigned int m_internalModule = 0;
|
||||
AutoComboBox *internalModuleBaudRate;
|
||||
AutoComboBox *serialPortUSBVCP;
|
||||
|
||||
void addStick(int index, int & row);
|
||||
void addPot(int index, int & row);
|
||||
@@ -58,4 +59,6 @@ class HardwarePanel : public GeneralPanel
|
||||
void addLine(int & row);
|
||||
void addParams(int & row, QWidget * widget1, QWidget * widget2 = nullptr);
|
||||
void addSection(QString text, int & row);
|
||||
|
||||
void updateSerialPortUSBVCP();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user