Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-13200
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Dec 14, 2023
1 parent a296c31 commit 5a646eb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/sdks/SDK_fms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ namespace OpenWifi::SDK::FMS {
}
return true;
}
std::cout << "GetDeviceTypeFirmwares:" << FirmWares.size() << std::endl;
static int done=0;
if(!done) {
for (const auto &Firmware: FirmWares) {
std::cout << "Firmware: " << Firmware.revision << std::endl;
}
}
done=1;
return false;
}

Expand All @@ -60,7 +66,6 @@ namespace OpenWifi::SDK::FMS {
std::vector<FMSObjects::Firmware> Firmwares;
if (GetDeviceTypeFirmwares(device_type, Firmwares)) {
for (const auto &firmware : Firmwares) {
std::cout << "'" << firmware.revision << "' == '" << revision << "'" << std::endl;
if (firmware.revision == revision) {
std::cout << "Found match..." << std::endl;
Firmware = firmware;
Expand Down

0 comments on commit 5a646eb

Please sign in to comment.