16
16
* limitations under the License.
17
17
*/
18
18
19
+ #include < app/clusters/ota-requestor/OTADownloader.h>
20
+ #include < app/clusters/ota-requestor/OTARequestorInterface.h>
19
21
#include < lib/support/BufferReader.h>
20
22
#include < platform/DiagnosticDataProvider.h>
21
23
#include < platform/internal/CHIPDeviceLayerInternal.h>
22
24
#include < platform/internal/GenericConfigurationManagerImpl.h>
23
- #include < app/clusters/ota-requestor/OTADownloader.h>
24
- #include < app/clusters/ota-requestor/OTARequestorInterface.h>
25
25
26
26
#include < platform/silabs/multi-ota/OTAMultiImageProcessorImpl.h>
27
27
@@ -38,7 +38,6 @@ extern "C" {
38
38
#endif // SL_WIFI
39
39
}
40
40
41
-
42
41
namespace chip {
43
42
44
43
CHIP_ERROR OTAMultiImageProcessorImpl::Init (OTADownloader * downloader)
@@ -223,10 +222,8 @@ void OTAMultiImageProcessorImpl::HandleAbort(intptr_t context)
223
222
imageProcessor->AbortAllProcessors ();
224
223
}
225
224
imageProcessor->Clear ();
226
-
227
225
}
228
226
229
-
230
227
void OTAMultiImageProcessorImpl::HandleProcessBlock (intptr_t context)
231
228
{
232
229
auto * imageProcessor = reinterpret_cast <OTAMultiImageProcessorImpl *>(context);
@@ -347,7 +344,7 @@ CHIP_ERROR OTAMultiImageProcessorImpl::SetBlock(ByteSpan & block)
347
344
void OTAMultiImageProcessorImpl::HandleFinalize (intptr_t context)
348
345
{
349
346
ChipLogError (SoftwareUpdate, " HandleFinalize begin" );
350
- CHIP_ERROR error = CHIP_NO_ERROR;
347
+ CHIP_ERROR error = CHIP_NO_ERROR;
351
348
auto * imageProcessor = reinterpret_cast <OTAMultiImageProcessorImpl *>(context);
352
349
if (imageProcessor == nullptr )
353
350
{
@@ -423,7 +420,6 @@ void OTAMultiImageProcessorImpl::HandleApply(intptr_t context)
423
420
424
421
ChipLogProgress (SoftwareUpdate, " HandleApply: Finished" );
425
422
426
-
427
423
// TODO: check where to put this
428
424
// ConfigurationManagerImpl().StoreSoftwareUpdateCompleted();
429
425
@@ -446,7 +442,6 @@ void OTAMultiImageProcessorImpl::FetchNextData(uint32_t context)
446
442
{
447
443
ChipLogError (SoftwareUpdate, " Fetch data 1:" );
448
444
449
-
450
445
auto * imageProcessor = &OTAMultiImageProcessorImpl::GetDefaultInstance ();
451
446
SystemLayer ().ScheduleLambda ([imageProcessor] {
452
447
if (imageProcessor->mDownloader )
@@ -455,7 +450,6 @@ void OTAMultiImageProcessorImpl::FetchNextData(uint32_t context)
455
450
}
456
451
});
457
452
ChipLogError (SoftwareUpdate, " Fetch data 2:" );
458
-
459
453
}
460
454
461
455
OTAMultiImageProcessorImpl & OTAMultiImageProcessorImpl::GetDefaultInstance ()
0 commit comments