File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,6 @@ CHIP_ERROR OTAImageProcessorImpl::Apply()
44
44
45
45
CHIP_ERROR OTAImageProcessorImpl::Abort ()
46
46
{
47
- if (mImageFile == nullptr )
48
- {
49
- ChipLogError (SoftwareUpdate, " Invalid output image file supplied" );
50
- return CHIP_ERROR_INTERNAL;
51
- }
52
47
DeviceLayer::PlatformMgr ().ScheduleWork (HandleAbort, reinterpret_cast <intptr_t >(this ));
53
48
return CHIP_NO_ERROR;
54
49
}
@@ -308,6 +303,7 @@ void OTAImageProcessorImpl::HandleAbort(intptr_t context)
308
303
}
309
304
310
305
OTA_CancelImage ();
306
+ OTA_ServiceDeInit ();
311
307
312
308
imageProcessor->ReleaseBlock ();
313
309
}
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ class OTAImageProcessorImpl : public OTAImageProcessorInterface
47
47
static void TriggerNewRequestForData (intptr_t context);
48
48
49
49
void SetOTADownloader (OTADownloader * downloader) { mDownloader = downloader; }
50
- void SetOTAImageFile (const char * imageFile) { mImageFile = imageFile; }
51
50
52
51
private:
53
52
// ////////// Actual handlers for the OTAImageProcessorInterface ///////////////
@@ -75,7 +74,6 @@ class OTAImageProcessorImpl : public OTAImageProcessorInterface
75
74
OTADownloader * mDownloader ;
76
75
OTAImageHeaderParser mHeaderParser ;
77
76
uint32_t mSoftwareVersion ;
78
- const char * mImageFile = nullptr ;
79
77
80
78
/* Buffer used for transaction storage */
81
79
uint8_t mPostedOperationsStorage [NB_PENDING_TRANSACTIONS * TRANSACTION_SZ];
You can’t perform that action at this time.
0 commit comments