Skip to content

Commit 7b310cd

Browse files
committed
append static firmware list from file instead of replacing it
1 parent f7a4daf commit 7b310cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/FirmwareChecker.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ FirmwareChecker::FirmwareChecker() : mCompatibleFirmwareList({
7373

7474
// if the parsed list is not empty update the compatible fimrware list
7575
if (!parsedList.empty()) {
76-
mCompatibleFirmwareList = parsedList;
76+
// append existing list...
77+
for (const auto& p: parsedList) {
78+
if ((p.first.length()) && (p.second.length())) {
79+
mCompatibleFirmwareList.insert(p);
80+
}
81+
}
82+
//mCompatibleFirmwareList = parsedList;
7783
}
7884
}
7985

0 commit comments

Comments
 (0)