@@ -36,7 +36,6 @@ extern "C" {
3636#define RPS_HEADER 1
3737#define RPS_DATA 2
3838
39- #define SL_STATUS_FW_UPDATE_DONE SL_STATUS_SI91X_NO_AP_FOUND
4039uint8_t flag = RPS_HEADER;
4140static chip::OTAImageProcessorImpl gImageProcessor ;
4241
@@ -186,13 +185,13 @@ void OTAImageProcessorImpl::HandleFinalize(intptr_t context)
186185
187186 if (status != SL_STATUS_OK)
188187 {
189- if (status == SL_STATUS_FW_UPDATE_DONE )
188+ if (status == SL_STATUS_SI91X_FW_UPDATE_DONE )
190189 {
191190 mReset = true ;
192191 }
193192 else
194193 {
195- ChipLogError (SoftwareUpdate, " ERROR: In HandleFinalize for last chunk sl_si91x_fwup_load() error %ld " , status);
194+ ChipLogError (SoftwareUpdate, " ERROR: In HandleFinalize for last chunk sl_si91x_fwup_load() error 0x%lx " , status);
196195 imageProcessor->mDownloader ->EndDownload (CHIP_ERROR_WRITE_FAILED);
197196 return ;
198197 }
@@ -315,13 +314,13 @@ void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context)
315314 {
316315 // If the last chunk of last block-writeBufOffset length is exactly kAlignmentBytes(64) bytes then mReset value
317316 // should be set to true in HandleProcessBlock
318- if (status == SL_STATUS_FW_UPDATE_DONE )
317+ if (status == SL_STATUS_SI91X_FW_UPDATE_DONE )
319318 {
320319 mReset = true ;
321320 }
322321 else
323322 {
324- ChipLogError (SoftwareUpdate, " ERROR: In HandleProcessBlock sl_si91x_fwup_load() error %ld " , status);
323+ ChipLogError (SoftwareUpdate, " ERROR: In HandleProcessBlock sl_si91x_fwup_load() error 0x%lx " , status);
325324 imageProcessor->mDownloader ->EndDownload (CHIP_ERROR_WRITE_FAILED);
326325 return ;
327326 }
0 commit comments