@@ -56,7 +56,7 @@ CHIP_ERROR OTAImageProcessorImpl::PrepareDownload()
56
56
57
57
return DeviceLayer::SystemLayer ().ScheduleLambda ([this ] { mDownloader ->OnPreparedForDownload (PrepareDownloadImpl ()); });
58
58
}
59
- const struct device * flash_dev;
59
+ const struct device * flash_dev;
60
60
61
61
CHIP_ERROR OTAImageProcessorImpl::InitFlashStream (size_t offset)
62
62
{
@@ -201,7 +201,7 @@ CHIP_ERROR OTAImageProcessorImpl::ConfirmCurrentImage()
201
201
202
202
CHIP_ERROR OTAImageProcessorImpl::RestoreBytes (ByteSpan & aBlock)
203
203
{
204
- uint8_t *ImageDigestBuffer = new uint8_t [aBlock.size ()];
204
+ uint8_t * ImageDigestBuffer = new uint8_t [aBlock.size ()];
205
205
MutableByteSpan mImageDigest (ImageDigestBuffer, aBlock.size ());
206
206
207
207
if (KeyValueStoreMgr ().Get (kImageDigest , mImageDigest .data (), mImageDigest .size ()) == CHIP_NO_ERROR &&
@@ -213,8 +213,8 @@ CHIP_ERROR OTAImageProcessorImpl::RestoreBytes(ByteSpan & aBlock)
213
213
ChipLogDetail (SoftwareUpdate, " Restored %u/%u bytes" , static_cast <unsigned >(downloadedBytesRestored),
214
214
static_cast <unsigned >(mParams .totalFileBytes ))
215
215
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 )));
218
218
ReturnErrorOnFailure (InitFlashStream (downloadedBytesRestored));
219
219
}
220
220
else
0 commit comments