Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,12 @@ namespace OWCL {
return 1;
}

// commit RAM->flash so the mapping survives a controller reset / reboot
std::cout << "config applied, committing to controller flash (takes ~12s) ...\n";

if (!gpd->flushConfig())
std::cerr << "warning: config applied but flush-to-flash failed (not permanent)\n";

std::cout << "applied config from " << fileName << "\n";
return 0;
}
Expand Down Expand Up @@ -662,6 +668,12 @@ namespace OWCL {
return 1;
}

// commit RAM->flash so the mapping survives a controller reset / reboot
std::cout << "config applied, committing to controller flash (takes ~12s) ...\n";

if (!gpd->flushConfig())
std::cerr << "warning: config applied but flush-to-flash failed (not permanent)\n";

return 0;
}

Expand Down