diff --git a/src/Utils.cpp b/src/Utils.cpp index 1da6e25..3ab2cf1 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -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; } @@ -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; }