@@ -68,24 +68,24 @@ CHIP_ERROR OTAImageProcessorImpl::Init(OTADownloader * downloader)
6868
6969CHIP_ERROR OTAImageProcessorImpl::PrepareDownload ()
7070{
71- PlatformMgr ().ScheduleWork (HandlePrepareDownload, reinterpret_cast <intptr_t >(this ));
71+ TEMPORARY_RETURN_IGNORED PlatformMgr ().ScheduleWork (HandlePrepareDownload, reinterpret_cast <intptr_t >(this ));
7272 return CHIP_NO_ERROR;
7373}
7474
7575CHIP_ERROR OTAImageProcessorImpl::Finalize ()
7676{
77- PlatformMgr ().ScheduleWork (HandleFinalize, reinterpret_cast <intptr_t >(this ));
77+ TEMPORARY_RETURN_IGNORED PlatformMgr ().ScheduleWork (HandleFinalize, reinterpret_cast <intptr_t >(this ));
7878 return CHIP_NO_ERROR;
7979}
8080CHIP_ERROR OTAImageProcessorImpl::Apply ()
8181{
82- PlatformMgr ().ScheduleWork (HandleApply, reinterpret_cast <intptr_t >(this ));
82+ TEMPORARY_RETURN_IGNORED PlatformMgr ().ScheduleWork (HandleApply, reinterpret_cast <intptr_t >(this ));
8383 return CHIP_NO_ERROR;
8484}
8585
8686CHIP_ERROR OTAImageProcessorImpl::Abort ()
8787{
88- PlatformMgr ().ScheduleWork (HandleAbort, reinterpret_cast <intptr_t >(this ));
88+ TEMPORARY_RETURN_IGNORED PlatformMgr ().ScheduleWork (HandleAbort, reinterpret_cast <intptr_t >(this ));
8989 return CHIP_NO_ERROR;
9090}
9191
@@ -103,7 +103,7 @@ CHIP_ERROR OTAImageProcessorImpl::ProcessBlock(ByteSpan & block)
103103 ChipLogError (SoftwareUpdate, " Cannot set block data: %" CHIP_ERROR_FORMAT, err.Format ());
104104 }
105105
106- PlatformMgr ().ScheduleWork (HandleProcessBlock, reinterpret_cast <intptr_t >(this ));
106+ TEMPORARY_RETURN_IGNORED PlatformMgr ().ScheduleWork (HandleProcessBlock, reinterpret_cast <intptr_t >(this ));
107107 return CHIP_NO_ERROR;
108108}
109109
@@ -166,10 +166,10 @@ void OTAImageProcessorImpl::HandlePrepareDownload(intptr_t context)
166166
167167#if CHIP_CONFIG_ENABLE_ICD_SERVER
168168 // Setting the device in high performance - no-sleep mode during OTA tranfer
169- WifiSleepManager::GetInstance ().RequestHighPerformanceWithTransition ();
169+ TEMPORARY_RETURN_IGNORED WifiSleepManager::GetInstance ().RequestHighPerformanceWithTransition ();
170170#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER*/
171171
172- imageProcessor->mDownloader ->OnPreparedForDownload (CHIP_NO_ERROR);
172+ TEMPORARY_RETURN_IGNORED imageProcessor->mDownloader ->OnPreparedForDownload (CHIP_NO_ERROR);
173173}
174174
175175void OTAImageProcessorImpl::HandleFinalize (intptr_t context)
@@ -201,11 +201,11 @@ void OTAImageProcessorImpl::HandleFinalize(intptr_t context)
201201 }
202202 }
203203 }
204- imageProcessor->ReleaseBlock ();
204+ TEMPORARY_RETURN_IGNORED imageProcessor->ReleaseBlock ();
205205
206206#if CHIP_CONFIG_ENABLE_ICD_SERVER
207207 // Setting the device back to power save mode when transfer is completed successfully
208- WifiSleepManager::GetInstance ().RemoveHighPerformanceRequest ();
208+ TEMPORARY_RETURN_IGNORED WifiSleepManager::GetInstance ().RemoveHighPerformanceRequest ();
209209#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER*/
210210
211211 ChipLogProgress (SoftwareUpdate, " OTA image downloaded successfully" );
@@ -222,7 +222,7 @@ void OTAImageProcessorImpl::HandleApply(intptr_t context)
222222
223223#if CHIP_CONFIG_ENABLE_ICD_SERVER
224224 // Setting the device is in high performace - no-sleepy mode before soft reset as soft reset is not happening in sleep mode
225- WifiSleepManager::GetInstance ().RequestHighPerformanceWithTransition ();
225+ TEMPORARY_RETURN_IGNORED WifiSleepManager::GetInstance ().RequestHighPerformanceWithTransition ();
226226#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER*/
227227
228228 if (mReset )
@@ -231,7 +231,7 @@ void OTAImageProcessorImpl::HandleApply(intptr_t context)
231231 // send system reset request to reset the MCU and upgrade the m4 image
232232 ChipLogProgress (SoftwareUpdate, " SoC Soft Reset initiated!" );
233233 // Write that we are rebooting after a software update and reboot the device
234- SilabsConfig::WriteConfigValue (SilabsConfig::kConfigKey_MatterUpdateReboot , true );
234+ TEMPORARY_RETURN_IGNORED SilabsConfig::WriteConfigValue (SilabsConfig::kConfigKey_MatterUpdateReboot , true );
235235 GetPlatform ().SoftwareReset ();
236236 }
237237}
@@ -246,11 +246,11 @@ void OTAImageProcessorImpl::HandleAbort(intptr_t context)
246246
247247#if CHIP_CONFIG_ENABLE_ICD_SERVER
248248 // Setting the device back to power save mode when transfer is aborted in the middle
249- WifiSleepManager::GetInstance ().RemoveHighPerformanceRequest ();
249+ TEMPORARY_RETURN_IGNORED WifiSleepManager::GetInstance ().RemoveHighPerformanceRequest ();
250250#endif /* CHIP_CONFIG_ENABLE_ICD_SERVER*/
251251
252252 // Not clearing the image storage area as it is done during each write
253- imageProcessor->ReleaseBlock ();
253+ TEMPORARY_RETURN_IGNORED imageProcessor->ReleaseBlock ();
254254}
255255
256256void OTAImageProcessorImpl::HandleProcessBlock (intptr_t context)
@@ -320,7 +320,7 @@ void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context)
320320 imageProcessor->mParams .downloadedBytes += kAlignmentBytes ;
321321 }
322322 }
323- imageProcessor->mDownloader ->FetchNextData ();
323+ TEMPORARY_RETURN_IGNORED imageProcessor->mDownloader ->FetchNextData ();
324324}
325325
326326CHIP_ERROR OTAImageProcessorImpl::ProcessHeader (ByteSpan & block)
@@ -354,7 +354,7 @@ CHIP_ERROR OTAImageProcessorImpl::SetBlock(ByteSpan & block)
354354 // Allocate memory for block data if we don't have enough already
355355 if (mBlock .size () < block.size ())
356356 {
357- ReleaseBlock ();
357+ TEMPORARY_RETURN_IGNORED ReleaseBlock ();
358358
359359 mBlock = MutableByteSpan (static_cast <uint8_t *>(chip::Platform::MemoryAlloc (block.size ())), block.size ());
360360 if (mBlock .data () == nullptr )
0 commit comments