@@ -36,7 +36,6 @@ extern "C" {
36
36
#define RPS_HEADER 1
37
37
#define RPS_DATA 2
38
38
39
- #define SL_STATUS_FW_UPDATE_DONE SL_STATUS_SI91X_NO_AP_FOUND
40
39
uint8_t flag = RPS_HEADER;
41
40
static chip::OTAImageProcessorImpl gImageProcessor ;
42
41
@@ -186,13 +185,13 @@ void OTAImageProcessorImpl::HandleFinalize(intptr_t context)
186
185
187
186
if (status != SL_STATUS_OK)
188
187
{
189
- if (status == SL_STATUS_FW_UPDATE_DONE )
188
+ if (status == SL_STATUS_SI91X_FW_UPDATE_DONE )
190
189
{
191
190
mReset = true ;
192
191
}
193
192
else
194
193
{
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);
196
195
imageProcessor->mDownloader ->EndDownload (CHIP_ERROR_WRITE_FAILED);
197
196
return ;
198
197
}
@@ -315,13 +314,13 @@ void OTAImageProcessorImpl::HandleProcessBlock(intptr_t context)
315
314
{
316
315
// If the last chunk of last block-writeBufOffset length is exactly kAlignmentBytes(64) bytes then mReset value
317
316
// should be set to true in HandleProcessBlock
318
- if (status == SL_STATUS_FW_UPDATE_DONE )
317
+ if (status == SL_STATUS_SI91X_FW_UPDATE_DONE )
319
318
{
320
319
mReset = true ;
321
320
}
322
321
else
323
322
{
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);
325
324
imageProcessor->mDownloader ->EndDownload (CHIP_ERROR_WRITE_FAILED);
326
325
return ;
327
326
}
0 commit comments