Skip to content

Commit 109469d

Browse files
restyled-commitss07641069
authored andcommitted
Restyled by clang-format
1 parent e037520 commit 109469d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/platform/telink/OTAImageProcessorImpl.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ CHIP_ERROR OTAImageProcessorImpl::PrepareDownload()
5656

5757
return DeviceLayer::SystemLayer().ScheduleLambda([this] { mDownloader->OnPreparedForDownload(PrepareDownloadImpl()); });
5858
}
59-
const struct device * flash_dev;
59+
const struct device * flash_dev;
6060

6161
CHIP_ERROR OTAImageProcessorImpl::InitFlashStream(size_t offset)
6262
{
@@ -201,7 +201,7 @@ CHIP_ERROR OTAImageProcessorImpl::ConfirmCurrentImage()
201201

202202
CHIP_ERROR OTAImageProcessorImpl::RestoreBytes(ByteSpan & aBlock)
203203
{
204-
uint8_t *ImageDigestBuffer = new uint8_t[aBlock.size()];
204+
uint8_t * ImageDigestBuffer = new uint8_t[aBlock.size()];
205205
MutableByteSpan mImageDigest(ImageDigestBuffer, aBlock.size());
206206

207207
if (KeyValueStoreMgr().Get(kImageDigest, mImageDigest.data(), mImageDigest.size()) == CHIP_NO_ERROR &&
@@ -213,8 +213,8 @@ CHIP_ERROR OTAImageProcessorImpl::RestoreBytes(ByteSpan & aBlock)
213213
ChipLogDetail(SoftwareUpdate, "Restored %u/%u bytes", static_cast<unsigned>(downloadedBytesRestored),
214214
static_cast<unsigned>(mParams.totalFileBytes))
215215

216-
// Reinit Flash Stream with offset
217-
ReturnErrorOnFailure(System::MapErrorZephyr(stream_flash_buffered_write(&stream, NULL, 0, true)));
216+
// Reinit Flash Stream with offset
217+
ReturnErrorOnFailure(System::MapErrorZephyr(stream_flash_buffered_write(&stream, NULL, 0, true)));
218218
ReturnErrorOnFailure(InitFlashStream(downloadedBytesRestored));
219219
}
220220
else

src/platform/telink/OTAImageProcessorImpl.h

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class OTAImageProcessorImpl : public OTAImageProcessorInterface
5454
// Define non-volatile storage keys for DownloadedBytes and ImageDigest.
5555
static constexpr char kDownloadedBytes[] = "DownloadedBytes";
5656
static constexpr char kImageDigest[] = "ImageDigest";
57-
uint64_t downloadedBytesRestored = 0;
57+
uint64_t downloadedBytesRestored = 0;
5858
};
5959

6060
} // namespace DeviceLayer

0 commit comments

Comments
 (0)