chore(flysky): clean up unused nv14 target (#6116)

This commit is contained in:
richardclli
2025-09-26 12:41:16 +10:00
committed by GitHub
parent db0ea752db
commit c1b7e23468
52 changed files with 148 additions and 4862 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ void ModelMenu::build()
#endif
addTab(new ModelTelemetryPage());
#if defined(PCBNV14) || defined(PCBPL18) || defined(PCBST16)
#if defined(PCBPL18) || defined(PCBST16)
new TextButton(
this,
{LCD_W / 2 + 6, MENU_TITLE_TOP, LCD_W / 2 - 8, MENU_TITLE_HEIGHT},
@@ -82,7 +82,7 @@ AFHDS2ASettings::AFHDS2ASettings(Window* parent, const FlexGridLayout& g,
line, [=]() { return md->flysky.mode; },
[=](uint8_t v) { md->flysky.mode = v; });
#if defined(PCBNV14)
#if defined(RADIO_NV14_FAMILY)
line = newLine(grid);
static const char* _rf_power[] = {"Default", "High"};
afhds2RFPowerText = new StaticText(line, rect_t{}, STR_MULTI_RFPOWER);
@@ -101,7 +101,7 @@ void AFHDS2ASettings::hideAFHDS2Options()
{
afhds2OptionsLabel->hide();
afhds2ProtoOpts->hide();
#if defined(PCBNV14)
#if defined(RADIO_NV14_FAMILY)
afhds2RFPowerText->hide();
afhds2RFPowerChoice->hide();
#endif
@@ -111,7 +111,7 @@ void AFHDS2ASettings::showAFHDS2Options()
{
afhds2OptionsLabel->show();
afhds2ProtoOpts->show();
#if defined(PCBNV14)
#if defined(RADIO_NV14_FAMILY)
bool showRFPower = (getNV14RfFwVersion() >= 0x1000E);
afhds2RFPowerText->show(showRFPower);
afhds2RFPowerChoice->show(showRFPower);
@@ -35,7 +35,7 @@ class AFHDS2ASettings : public Window, public ModuleOptions
Window* afhds2OptionsLabel = nullptr;
Window* afhds2ProtoOpts = nullptr;
#if defined(PCBNV14)
#if defined(RADIO_NV14_FAMILY)
bool hasRFPower = false;
Window* afhds2RFPowerText = nullptr;
Choice* afhds2RFPowerChoice = nullptr;
@@ -200,7 +200,7 @@ class VersionDialog : public BaseDialog
}
#endif
#if defined(PCBNV14) && defined(AFHDS2)
#if defined(RADIO_NV14_FAMILY) && defined(AFHDS2)
// NV14 AFHDS2A internal module is able to provide FW version
extern uint32_t NV14internalModuleFwVersion;
if (isModuleAFHDS2A(module)) {
@@ -337,7 +337,7 @@ RadioVersionPage::RadioVersionPage() :
{
}
#if defined(PCBNV14) || defined(PCBPL18)
#if defined(PCBPL18)
extern const char* boardLcdType;
extern const char* boardTouchType;
#endif
@@ -366,7 +366,7 @@ void RadioVersionPage::build(Window* window)
version += '0' + hardwareOptions.pcbrev;
#endif
#if (defined(PCBNV14) || defined(PCBPL18)) && !defined(SIMU)
#if defined(PCBPL18) && !defined(SIMU)
version += nl;
version += "LCD: ";
version += boardLcdType;