Reset the downloadedBytes and totalFileBytes in the OTAImageProgress params to 0 when we prepare for download for BDX (#28309)
diff --git a/src/platform/Linux/OTAImageProcessorImpl.cpp b/src/platform/Linux/OTAImageProcessorImpl.cpp
index 4b6695f..4647a0d 100644
--- a/src/platform/Linux/OTAImageProcessorImpl.cpp
+++ b/src/platform/Linux/OTAImageProcessorImpl.cpp
@@ -127,6 +127,8 @@
unlink(imageProcessor->mImageFile);
+ imageProcessor->mParams.downloadedBytes = 0;
+ imageProcessor->mParams.totalFileBytes = 0;
imageProcessor->mHeaderParser.Init();
imageProcessor->mOfs.open(imageProcessor->mImageFile, std::ofstream::out | std::ofstream::ate | std::ofstream::app);
if (!imageProcessor->mOfs.good())