Add board flavour
This commit is contained in:
committed by
Raphael Coeffic
parent
f965707bdd
commit
e64f57768a
@@ -262,6 +262,8 @@ enum EepromLoadErrors {
|
||||
NUM_ERRORS
|
||||
};
|
||||
|
||||
constexpr char FIRMWARE_ID_PREFIX[] = { "edgetx-" };
|
||||
|
||||
class Firmware
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Firmware)
|
||||
@@ -405,6 +407,13 @@ class Firmware
|
||||
currentVariant = value;
|
||||
}
|
||||
|
||||
QString getFlavour();
|
||||
|
||||
static Firmware * getFirmwareForFlavour(const QString & flavour)
|
||||
{
|
||||
return getFirmwareForId(FIRMWARE_ID_PREFIX + flavour);
|
||||
}
|
||||
|
||||
const StringTagMappingTable* getAnalogIndexNamesLookupTable()
|
||||
{
|
||||
return &analogInputNamesLookupTable;
|
||||
|
||||
Reference in New Issue
Block a user