feat(cpn): Radio types can reference any libsim and/or firmware download id (#3432)

* Radio profiles reference any libsim and/or firmware download id

* Revert files filter for now
This commit is contained in:
Neil Horne
2023-05-07 18:01:14 +10:00
committed by GitHub
parent 7a083fe0f7
commit f800447cd5
16 changed files with 185 additions and 95 deletions
+1 -18
View File
@@ -780,24 +780,7 @@ bool UpdateInterface::setFilteredAssets(const UpdateParameters::AssetParams & ap
void UpdateInterface::setFirmwareFlavour()
{
const QStringList currVariant = getCurrentFirmware()->getId().split('-');
m_params->fwFlavour = "";
if (currVariant.size() > 1) {
m_params->fwFlavour = currVariant.at(1);
// Companion registered firmware identities (refer opentxinterface.cpp) do not always match the EdgeTX repo fw.json file
const QMap<QString, QString> map = {
{ "x7access", "x7-access" },
{ "x9d+", "x9dp" },
{ "x9d+2019", "x9dp2019" },
{ "x9ehall", "x9e-hall" },
{ "x10express", "x10-access" }
};
QString repofw = map[m_params->fwFlavour];
if (!repofw.isEmpty())
m_params->fwFlavour = repofw;
}
m_params->fwFlavour = getCurrentFirmware()->getDownloadId();
}
void UpdateInterface::setLanguage()