fix(cpn):board hardware definition not loaded for firmware objects with empty hwdefnId (#7744)
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
6ebd3b9834
commit
aa726095d9
@@ -58,7 +58,7 @@ Firmware::Firmware(Firmware * base, const QString & id, const QString & name, Bo
|
||||
simulatorId(simulatorId),
|
||||
hwdefnId(hwdefnId)
|
||||
{
|
||||
gBoardFactories->registerBoard(board, hwdefnId);
|
||||
gBoardFactories->registerBoard(board, this->hwdefnId.isEmpty() ? getFlavour() : this->hwdefnId);
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
@@ -130,6 +130,8 @@ int main(int argc, char **argv)
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
Q_INIT_RESOURCE(hwdefs);
|
||||
|
||||
CustomDebug::setFilterRules();
|
||||
gBoardFactories = new BoardFactories();
|
||||
registerStorageFactories();
|
||||
|
||||
Reference in New Issue
Block a user