fix(cpn): Update firmware mapping of firmware id to repo (#3160)

* fix(cpn): Update firmware mapping of firmware id to repo bin file

* typo
This commit is contained in:
Neil Horne
2023-02-13 20:42:47 +10:00
committed by GitHub
parent 00c38511cb
commit 1913d65b10
+11 -1
View File
@@ -406,7 +406,17 @@ void UpdateInterface::setFlavourLanguage()
if (currVariant.size() > 1) {
params->fwFlavour = currVariant.at(1);
params->fwFlavour = params->fwFlavour.replace('+', 'p');
// 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[params->fwFlavour];
if (!repofw.isEmpty())
params->fwFlavour = repofw;
}
params->language = "";