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),
|
simulatorId(simulatorId),
|
||||||
hwdefnId(hwdefnId)
|
hwdefnId(hwdefnId)
|
||||||
{
|
{
|
||||||
gBoardFactories->registerBoard(board, hwdefnId);
|
gBoardFactories->registerBoard(board, this->hwdefnId.isEmpty() ? getFlavour() : this->hwdefnId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|||||||
@@ -130,6 +130,8 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
|
|
||||||
|
Q_INIT_RESOURCE(hwdefs);
|
||||||
|
|
||||||
CustomDebug::setFilterRules();
|
CustomDebug::setFilterRules();
|
||||||
gBoardFactories = new BoardFactories();
|
gBoardFactories = new BoardFactories();
|
||||||
registerStorageFactories();
|
registerStorageFactories();
|
||||||
|
|||||||
Reference in New Issue
Block a user