diff --git a/bsp_q7s/core/CoreController.cpp b/bsp_q7s/core/CoreController.cpp index fa2610bb..89e95523 100644 --- a/bsp_q7s/core/CoreController.cpp +++ b/bsp_q7s/core/CoreController.cpp @@ -1891,6 +1891,7 @@ ReturnValue_t CoreController::executeSwUpdate(SwUpdateSources sourceDir, const u size_t size) { using namespace std; using namespace std::filesystem; + error_code e; // At the very least, chip and copy ID need to be included in the command if (size < 2) { return HasActionsIF::INVALID_PARAMETERS; @@ -2020,8 +2021,8 @@ ReturnValue_t CoreController::executeSwUpdate(SwUpdateSources sourceDir, const u cmd.clear(); // Remove the extracted files to keep directories clean. - std::filesystem::remove(strippedImagePath); - std::filesystem::remove(obswVersionFilePath); + std::filesystem::remove(strippedImagePath, e); + std::filesystem::remove(obswVersionFilePath, e); // TODO: This takes a long time and will block the core controller.. Maybe use command executor? // For now dont care..