From 3a52f1fc6ddaafb59188dc353573e286963a89b4 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 19 Dec 2023 05:10:24 +0000 Subject: [PATCH] Restyled by clang-format --- examples/platform/silabs/OTAConfig.cpp | 2 +- src/platform/silabs/SiWx917/OTAImageProcessorImpl.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/platform/silabs/OTAConfig.cpp b/examples/platform/silabs/OTAConfig.cpp index e8a4358fe5e523..523be91c60e849 100644 --- a/examples/platform/silabs/OTAConfig.cpp +++ b/examples/platform/silabs/OTAConfig.cpp @@ -17,8 +17,8 @@ */ #include "OTAConfig.h" -#include #include "sl_matter_ota_config.h" // MATTER_GSDK_INTEGRATION +#include #ifndef SIWX_917 diff --git a/src/platform/silabs/SiWx917/OTAImageProcessorImpl.cpp b/src/platform/silabs/SiWx917/OTAImageProcessorImpl.cpp index 0a6add6015d828..075317fb9cb2f3 100644 --- a/src/platform/silabs/SiWx917/OTAImageProcessorImpl.cpp +++ b/src/platform/silabs/SiWx917/OTAImageProcessorImpl.cpp @@ -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 @@ -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; @@ -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; } }