Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and KishorSilabs committed Dec 19, 2023
1 parent c71069f commit 3a52f1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/platform/silabs/OTAConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/

#include "OTAConfig.h"
#include <app/server/Server.h>
#include "sl_matter_ota_config.h" // MATTER_GSDK_INTEGRATION
#include <app/server/Server.h>

#ifndef SIWX_917

Expand Down
7 changes: 4 additions & 3 deletions src/platform/silabs/SiWx917/OTAImageProcessorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void OTAImageProcessorImpl::HandleApply(intptr_t context)

ChipLogProgress(SoftwareUpdate, "OTA image downloaded successfully in HandleApply");

if(mReset)
if (mReset)
{
ChipLogProgress(SoftwareUpdate, "M4 Firmware update complete");
// send system reset request to reset the MCU and upgrade the m4 image
Expand Down Expand Up @@ -272,7 +272,8 @@ void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context)
status = sl_si91x_fwup_load(writeBuffer, kAlignmentBytes);
if (status != SL_STATUS_OK)
{
// If the last chunk of last block-writeBufOffset length is exactly kAlignmentBytes(64) bytes then mReset value should be set to true in HandleProcessBlock
// If the last chunk of last block-writeBufOffset length is exactly kAlignmentBytes(64) bytes then mReset value
// should be set to true in HandleProcessBlock
if (status == SL_STATUS_FW_UPDATE_DONE)
{
mReset = true;
Expand All @@ -285,7 +286,7 @@ void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context)
}
}
}
// ChipLogProgress(SoftwareUpdate, "HandleProcessBlock status: 0x%lX", status);
// ChipLogProgress(SoftwareUpdate, "HandleProcessBlock status: 0x%lX", status);
imageProcessor->mParams.downloadedBytes += kAlignmentBytes;
}
}
Expand Down

0 comments on commit 3a52f1f

Please sign in to comment.